diff --git a/maubot_llmplus/local_paltform.py b/maubot_llmplus/local_paltform.py index d56adb0..fbd9e09 100644 --- a/maubot_llmplus/local_paltform.py +++ b/maubot_llmplus/local_paltform.py @@ -28,8 +28,8 @@ class Ollama(Platform): if self.api_key is not None: headers['Authorization'] = self.api_key plugin.log.debug(f"{json.dumps(req_body)}") - async with self.http.post(endpoint, headers=headers, data=json.dumps(req_body)) as response: - plugin.log.debug(f"响应内容:{response.status}, {await response.json()}") + async with self.http.post(endpoint, headers=headers, json=req_body) as response: + # plugin.log.debug(f"响应内容:{response.status}, {await response.json()}") if response.status != 200: return ChatCompletion( message={},