From b6de07ce1ea9a3d75dad3c41bd4de731c425c152 Mon Sep 17 00:00:00 2001 From: taylor Date: Sun, 13 Oct 2024 17:53:28 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=B7=BB=E5=8A=A0ollama=E8=B0=83?= =?UTF-8?q?=E7=94=A8AI=20chat=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maubot_llmplus/local_paltform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot_llmplus/local_paltform.py b/maubot_llmplus/local_paltform.py index 2c2beca..67ac655 100644 --- a/maubot_llmplus/local_paltform.py +++ b/maubot_llmplus/local_paltform.py @@ -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',