我的类定义导致异常:
ValueError:“WithDataLLM”对象没有字段“url”
关于 self.url = 赋值。为什么?
class WithDataLLM(LLM):
__slots__ = ("url", "headers", "data_sources")
def __init__(self, openAIServiceName, deploymentName, openAIServiceKey, searchServiceName, searchApiKey, indexName, indexRoleDescription, **kwargs):
super().__init__(**kwargs)
self.url = f"{openAIServiceName}/openai/..."