The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(models_dev): map meta-ai provider to models.dev 'meta' id (salvage #81418) (#84679)
rob-maron7113a69248ff
diff --git a/agent/models_dev.py b/agent/models_dev.pyindex 71af78625a4..52c41007413 100644--- a/agent/models_dev.py+++ b/agent/models_dev.py@@ -182,6 +182,13 @@ PROVIDER_TO_MODELS_DEV: Dict[str, str] = {"xai-oauth": "xai","xiaomi": "xiaomi","nvidia": "nvidia",+ # Meta Model API (Muse Spark family, api.meta.ai). models.dev keys these+ # under the "meta" provider id; Hermes' provider is "meta-ai" (and the+ # api.meta.ai host reverse-maps to "meta-ai"), so without both aliases the+ # context/pricing lookup misses and muse-spark-* falls back to the generic+ # 256K default instead of its true 1M window.+ "meta-ai": "meta",+ "meta": "meta","groq": "groq","mistral": "mistral","togetherai": "togetherai",diff --git a/contributors/emails/[email protected] b/contributors/emails/[email protected]new file mode 100644index 00000000000..dfa33711c31--- /dev/null+++ b/contributors/emails/[email protected]@@ -0,0 +1 @@+albertodepaoladiff --git a/tests/agent/test_models_dev_meta_mapping.py b/tests/agent/test_models_dev_meta_mapping.pynew file mode 100644index 00000000000..01dc09256ea--- /dev/null+++ b/tests/agent/test_models_dev_meta_mapping.py@@ -0,0 +1,8 @@+"""Meta Model API maps to the models.dev 'meta' provider id (context/pricing)."""++from agent.models_dev import PROVIDER_TO_MODELS_DEV+++def test_meta_ai_maps_to_meta():+ assert PROVIDER_TO_MODELS_DEV.get("meta-ai") == "meta"+ assert PROVIDER_TO_MODELS_DEV.get("meta") == "meta"