* fix(models_dev): map meta-ai provider to models.dev 'meta' id Muse Spark models (muse-spark-1.1/1.2/-contributor) are served via the Meta Model API and reverse-map from api.meta.ai to the Hermes provider id 'meta-ai'. models.dev keys the same models under the provider id 'meta'. lookup_models_dev_context() / _get_provider_models() resolve the models.dev id strictly via PROVIDER_TO_MODELS_DEV.get(provider) (no raw-id fallback, unlike get_model_info()), so an unmapped 'meta-ai' missed entirely and context fell back to the generic 256K default instead of the true ~1M window. Add the meta-ai->meta mapping (plus a defensive meta->meta) so context and pricing resolve from models.dev: 1.1=1,000,000; 1.2 & -contributor=1,048,576. * add contributor email --------- Co-authored-by: Beto de Paola <betodepaola@meta.com>
9 lines
285 B
Python
9 lines
285 B
Python
"""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"
|