From 9dbfa2c8de64b8632a86f1b20898637bc9a2095e Mon Sep 17 00:00:00 2001 From: taylor <=> Date: Mon, 14 Oct 2024 18:00:35 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BF=AE=E6=94=B9anthropic=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E4=BD=93?= 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 1ff5f35..eb79bc6 100644 --- a/maubot_llmplus/local_paltform.py +++ b/maubot_llmplus/local_paltform.py @@ -68,7 +68,7 @@ class LmStudio(Platform) : endpoint = f"{self.url}/v1/chat/completions" headers = {"content-type": "application/json"} - req_body = {model: self.model, message: full_context, temperature: self.temperature, stream: False} + req_body = {"model": self.model, "messages": full_context, "temperature": self.temperature, "stream": False} async with self.http.post( endpoint, headers=headers, data=json.dumps(req_body) ) as response: