fix(custom): support extraHeaders for OpenAI-compatible endpoints

This commit is contained in:
Xubin Ren
2026-03-17 04:28:24 +00:00
parent 84565d702c
commit db37ecbfd2
3 changed files with 43 additions and 4 deletions
+1
View File
@@ -364,6 +364,7 @@ def _make_provider(config: Config):
api_key=p.api_key if p else "no-key",
api_base=config.get_api_base(model) or "http://localhost:8000/v1",
default_model=model,
extra_headers=p.extra_headers if p else None,
)
# Azure OpenAI: direct Azure OpenAI endpoint with deployment name
elif provider_name == "azure_openai":