mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-29 06:31:32 +00:00
Merge 0c376841dc into 14b27bb68c
This commit is contained in:
commit
b7c54602e2
1 changed files with 2 additions and 2 deletions
|
|
@ -1276,8 +1276,8 @@ class AIAgent:
|
||||||
if _provider_timeout is not None:
|
if _provider_timeout is not None:
|
||||||
client_kwargs["timeout"] = _provider_timeout
|
client_kwargs["timeout"] = _provider_timeout
|
||||||
# Preserve any default_headers the router set
|
# Preserve any default_headers the router set
|
||||||
if hasattr(_routed_client, '_default_headers') and _routed_client._default_headers:
|
if hasattr(_routed_client, 'default_headers') and _routed_client.default_headers:
|
||||||
client_kwargs["default_headers"] = dict(_routed_client._default_headers)
|
client_kwargs["default_headers"] = dict(_routed_client.default_headers)
|
||||||
else:
|
else:
|
||||||
# When the user explicitly chose a non-OpenRouter provider
|
# When the user explicitly chose a non-OpenRouter provider
|
||||||
# but no credentials were found, fail fast with a clear
|
# but no credentials were found, fail fast with a clear
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue