mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
The native Gemini provider profile's default_aux_model and the curated model picker catalog were still pinned to gemini-3.5-flash, a stale generation now superseded by gemini-3.6-flash (documented GA). Bump both so the auxiliary-task default and the picker stay in sync with the current model. Contract test asserts the durable lockstep invariant only (default_aux_model is a member of _PROVIDER_MODELS["gemini"]) rather than pinning either side to a frozen model-name string, so it doesn't need updating on the next model-generation bump.
27 lines
956 B
Python
27 lines
956 B
Python
"""Contract tests for the native Google Gemini provider profile."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def gemini_profile():
|
|
import model_tools # noqa: F401
|
|
import providers
|
|
|
|
profile = providers.get_provider_profile("gemini")
|
|
assert profile is not None, "gemini provider profile must be registered"
|
|
return profile
|
|
|
|
|
|
def test_native_gemini_auxiliary_default_is_in_curated_catalog(gemini_profile):
|
|
"""The profile's default_aux_model must stay in lockstep with the curated
|
|
model picker catalog — whatever model the default points at has to be
|
|
one the picker can actually offer. Deliberately durable against future
|
|
model-generation bumps: it does not pin either side to a frozen
|
|
model-name string, only to the invariant that they never drift apart.
|
|
"""
|
|
from hermes_cli.models import _PROVIDER_MODELS
|
|
|
|
assert gemini_profile.default_aux_model in _PROVIDER_MODELS["gemini"]
|