mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-04 02:21:47 +00:00
fix: Enhance Kimi Coding API mode detection and User-Agent
This commit is contained in:
parent
2a026eb762
commit
6caf8bd994
3 changed files with 15 additions and 2 deletions
|
|
@ -678,6 +678,7 @@ def switch_model(
|
|||
_da = DIRECT_ALIASES.get(resolved_alias)
|
||||
if _da is not None and _da.base_url:
|
||||
base_url = _da.base_url
|
||||
api_mode = "" # clear so determine_api_mode re-detects from URL
|
||||
if not api_key:
|
||||
api_key = "no-key-required"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue