add: 添加ollama调用AI chat逻辑

This commit is contained in:
taylor
2024-10-13 17:53:28 +08:00
parent e4ba651dfd
commit b6de07ce1e

View File

@@ -37,7 +37,7 @@ class Ollama(Platform):
finish_reason=f"http status {response.status}",
model=None
)
response_json = response.json()
response_json = await response.json()
return ChatCompletion(
message=response_json['message'],
finish_reason='success',