Compare commits

..

No commits in common. "06aa2bce551363d53f995a00c7ce26627af4e485" and "c9e16751504e56f5cee5c685fb379fcfa2ad47d0" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View File

@ -269,7 +269,7 @@ def select_llm_provider() -> tuple[str, str]:
("Google", "https://generativelanguage.googleapis.com/v1"),
("Anthropic", "https://api.anthropic.com/"),
("xAI", "https://api.x.ai/v1"),
("Zai", "https://api.z.ai/api/coding/paas/v4"),
("Z.AI", "zai", "https://api.z.ai/api/coding/paas/v4"),
("Openrouter", "https://openrouter.ai/api/v1"),
("Ollama", "http://localhost:11434/v1"),
]

View File

@ -22,16 +22,14 @@ class ZAIClient(BaseLLMClient):
"base_url": self.base_url or self.DEFAULT_BASE_URL,
}
api_key = self.kwargs.get("api_key")
if api_key is None:
api_key = os.environ.get("ZAI_API_KEY")
api_key = os.environ.get("ZAI_API_KEY")
if api_key:
llm_kwargs["api_key"] = api_key
for key in (
"timeout",
"max_retries",
"api_key",
"callbacks",
"http_client",
"http_async_client",