update: 修改anthropic请求体
This commit is contained in:
@@ -124,7 +124,7 @@ class AiBotPlugin(AbsExtraConfigPlugin):
|
|||||||
return Anthropic(self.config, self.http)
|
return Anthropic(self.config, self.http)
|
||||||
if use_platform == 'local_ai#ollama':
|
if use_platform == 'local_ai#ollama':
|
||||||
return Ollama(self.config, self.http)
|
return Ollama(self.config, self.http)
|
||||||
if use_platform == 'lmstudio':
|
if use_platform == 'local_ai#lmstudio':
|
||||||
return LmStudio(self.config, self.http)
|
return LmStudio(self.config, self.http)
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"not found platform type: {type}")
|
raise ValueError(f"not found platform type: {type}")
|
||||||
|
|||||||
Reference in New Issue
Block a user