You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_resolve_endpoint raises ValueError when provider/model in agent config is not a string #33
While other fields in the same function use _get_val(obj, attr, expected_type) to safely validate types, provider_val and model_val do not. When cfg has non-string or mock attributes (such as in tests/unit/agents/test_explorer.py), getattr does not fall back to the default string, causing ModelProvider.from_string to raise:
This currently breaks 9 unit tests in tests/unit/agents/test_explorer.py.
Fix
Use _get_val(cfg, "provider", str) or "google" and _get_val(cfg, "model", str) or "gemini-2.5-flash" consistent with the other fields in _resolve_endpoint.
Activity
kart408 commentedon Sep 11, 2026
hi i like to work on this