diff --git a/maubot_llmplus/local_paltform.py b/maubot_llmplus/local_paltform.py index aa13b6b..9d24d49 100644 --- a/maubot_llmplus/local_paltform.py +++ b/maubot_llmplus/local_paltform.py @@ -27,7 +27,9 @@ class Ollama(Platform): headers = {} 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}, {response.json()}") if response.status != 200: return ChatCompletion( message={}, diff --git a/maubot_llmplus/platforms.py b/maubot_llmplus/platforms.py index 0c2ea5b..7777092 100644 --- a/maubot_llmplus/platforms.py +++ b/maubot_llmplus/platforms.py @@ -131,6 +131,7 @@ async def generate_context_messages(plugin: Plugin, platform: Platform, evt: Mes else: event_context = await plugin.client.get_event_context(room_id=evt.room_id, event_id=evt.event_id, limit=platform.max_context_messages * 2) + plugin.log.debug(f"event_context: {event_context}") previous_messages = iter(event_context.events_before) for evt in previous_messages: