Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

[mirror] openJiuwen-ai/jiuwenswarm#1377: fix(LLM test): Fix the issue where the base_url mistakenly included the /chat...

gcw_6ZTnJdNNd561955f855e
diff --git a/jiuwenswarm/gateway/channel_manager/web/app_web_handlers.py b/jiuwenswarm/gateway/channel_manager/web/app_web_handlers.py
index 41852c0be1..c28e27c6f2 100644
--- a/jiuwenswarm/gateway/channel_manager/web/app_web_handlers.py
+++ b/jiuwenswarm/gateway/channel_manager/web/app_web_handlers.py
@@ -2019,8 +2019,6 @@ def _register_web_handlers(bind: WebHandlersBindParams) -> None:
code="BAD_REQUEST",
)
return
- if api_base.endswith("/chat/completions"):
- api_base = api_base.rsplit("/chat/completions", 1)[0]
api_base = api_base.rstrip("/")
verify_ssl = bool(params.get("verify_ssl", False))