fix(custom): support extraHeaders for OpenAI-compatible endpoints
This commit is contained in:
1 parent
84565d702c
commit
db37ecbfd2
3 files changed
+43
-4
No files matched your search
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user