mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
fix(kimi-coding): set anthropic_messages api_mode for /coding endpoint
This commit is contained in:
@@ -1322,6 +1322,9 @@ def _resolve_delegation_credentials(cfg: dict, parent_agent) -> dict:
|
|||||||
elif base_url_hostname(configured_base_url) == "api.anthropic.com":
|
elif base_url_hostname(configured_base_url) == "api.anthropic.com":
|
||||||
provider = "anthropic"
|
provider = "anthropic"
|
||||||
api_mode = "anthropic_messages"
|
api_mode = "anthropic_messages"
|
||||||
|
elif "api.kimi.com/coding" in base_lower:
|
||||||
|
provider = "custom"
|
||||||
|
api_mode = "anthropic_messages"
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"model": configured_model,
|
"model": configured_model,
|
||||||
|
|||||||
Reference in New Issue
Block a user