add: 添加ollama调用AI chat逻辑
This commit is contained in:
@@ -37,7 +37,7 @@ class Ollama(Platform):
|
|||||||
finish_reason=f"http status {response.status}",
|
finish_reason=f"http status {response.status}",
|
||||||
model=None
|
model=None
|
||||||
)
|
)
|
||||||
response_json = response.json()
|
response_json = await response.json()
|
||||||
return ChatCompletion(
|
return ChatCompletion(
|
||||||
message=response_json['message'],
|
message=response_json['message'],
|
||||||
finish_reason='success',
|
finish_reason='success',
|
||||||
|
|||||||
Reference in New Issue
Block a user