fix: azure openai stream

This commit is contained in:
Eric L
2026-06-25 21:13:50 +08:00
parent 7047b30e27
commit 936eaf5939

View File

@@ -462,3 +462,10 @@ class _AzureChatHTTPClient(OpenAIHTTPClient):
eq.setdefault("api-version", self._api_version)
kwargs["extra_query"] = eq
return super().chat_completions(**kwargs)
def get_api_config(self):
config = super().get_api_config()
# The Azure HTTP client already stores the deployment-scoped base URL.
# Passing the raw endpoint again would override it in call_with_tools().
config["api_base"] = None
return config