Browse Source

Fix agent_service. Fix chat client

StrayWarrior 1 day ago
parent
commit
7d35fb4ea1
2 changed files with 1 additions and 2 deletions
  1. 0 1
      pqai_agent/agent_service.py
  2. 1 1
      pqai_agent/chat_service.py

+ 0 - 1
pqai_agent/agent_service.py

@@ -375,7 +375,6 @@ class AgentService:
                       coverImage=response.get("cover_url"), appOrgId=None,
                       appId=None)
         )
-        print(self.send_queue.consume())
 
     def _route_to_human_intervention(self, user_id: str, origin_message: MqMessage):
         """路由到人工干预"""

+ 1 - 1
pqai_agent/chat_service.py

@@ -123,7 +123,7 @@ class OpenAICompatible:
             kwargs['http_client'] = OpenAICompatible.create_outside_proxy_http_client()
             llm_client = OpenAI(api_key=OPENAI_API_TOKEN, base_url=OPENAI_BASE_URL, **kwargs)
         elif model_name in OpenAICompatible.openrouter_models:
-            kwargs['http_client'] = OpenAICompatible.create_outside_proxy_http_client()
+            # kwargs['http_client'] = OpenAICompatible.create_outside_proxy_http_client()
             llm_client = OpenAI(api_key=OPENROUTER_API_TOKEN, base_url=OPENROUTER_BASE_URL, **kwargs)
         else:
             raise Exception("Unsupported model: %s" % model_name)