mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(kimi-coding): set anthropic_messages api_mode for /coding endpoint
This commit is contained in:
parent
bad5471409
commit
46d680125e
1 changed files with 3 additions and 0 deletions
|
|
@ -1322,6 +1322,9 @@ def _resolve_delegation_credentials(cfg: dict, parent_agent) -> dict:
|
|||
elif base_url_hostname(configured_base_url) == "api.anthropic.com":
|
||||
provider = "anthropic"
|
||||
api_mode = "anthropic_messages"
|
||||
elif "api.kimi.com/coding" in base_lower:
|
||||
provider = "custom"
|
||||
api_mode = "anthropic_messages"
|
||||
|
||||
return {
|
||||
"model": configured_model,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue