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: