The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(providers): flip bundled meta-ai profile to the Responses wire
Tekniumf2f6dce78537
diff --git a/cli-config.yaml.example b/cli-config.yaml.exampleindex 1ce7b3903f3..d2228c76a74 100644--- a/cli-config.yaml.example+++ b/cli-config.yaml.example@@ -135,8 +135,10 @@ model:# providers:# meta:# base_url: https://api.meta.ai/v1-# api_key: ${META_API_KEY}+# api_key: ${MODEL_API_KEY}# # api_mode auto-detected as codex_responses for api.meta.ai; no need to set+# # (the bundled meta-ai provider covers this — a named custom provider is+# # only needed for a non-default Meta-compatible endpoint)# Command-minted credentials (optional): key_cmddiff --git a/plugins/model-providers/meta-ai/__init__.py b/plugins/model-providers/meta-ai/__init__.pyindex 0458eede9be..3f44fdc65e6 100644--- a/plugins/model-providers/meta-ai/__init__.py+++ b/plugins/model-providers/meta-ai/__init__.py@@ -91,7 +91,14 @@ meta_ai = MetaAIProfile(env_vars=("MODEL_API_KEY", "META_API_KEY", "META_MODEL_API_KEY", "META_BASE_URL"),base_url=_base_url(),auth_type="api_key",- api_mode="chat_completions",+ # Responses API is the wire that engages Muse prompt caching: measured+ # 0 cached tokens on /v1/chat/completions vs 93-99% cache hits on+ # /v1/responses with prompt_cache_retention (see host_mandated_api_mode+ # in hermes_cli/providers.py and the retention hint in+ # agent/transports/codex.py). The MetaAIProfile chat-completions hook+ # above still covers custom OpenAI-compatible endpoints configured with+ # a non-api.meta.ai base URL, which fall through to chat_completions.+ api_mode="codex_responses",# Muse Spark is natively multimodal (image/video/pdf/audio in, text out).supports_vision=True,# Cheap contributor tier is a good default for auxiliary tasksdiff --git a/tests/providers/test_meta_ai_profile.py b/tests/providers/test_meta_ai_profile.pyindex f9c350db505..91ecdcdd6e7 100644--- a/tests/providers/test_meta_ai_profile.py+++ b/tests/providers/test_meta_ai_profile.py@@ -22,7 +22,9 @@ class TestMetaAIProfile:assert p.name == "meta-ai"assert p.base_url == "https://api.meta.ai/v1"assert p.auth_type == "api_key"- assert p.api_mode == "chat_completions"+ # Responses API engages Muse prompt caching (0% on chat/completions+ # vs 93-99% on /v1/responses with prompt_cache_retention).+ assert p.api_mode == "codex_responses"assert "MODEL_API_KEY" in p.env_varsassert p.supports_vision is Trueassert p.default_aux_model == "muse-spark-1.2-contributor"