mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-22 05:22:09 +00:00
test(xai-oauth): use grok-4.3 instead of retiring grok-code-fast-1
Per @mark-xai's review on PR #26457 and the xAI model retirement on 2026-05-15: grok-code-fast-1 is being retired today and aliases redirect to grok-4.3 (already pinned to the top of the xAI model list by this PR). Update the two xAI Responses-API test fixtures Mark flagged plus the picker fallback default in hermes_cli/main.py that uses the same literal.
This commit is contained in:
parent
1e4801b8d0
commit
7d7cdd48e0
2 changed files with 3 additions and 3 deletions
|
|
@ -2887,7 +2887,7 @@ def _model_flow_xai_oauth(_config, current_model=""):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
models = list(_PROVIDER_MODELS.get("xai-oauth") or _PROVIDER_MODELS.get("xai") or [])
|
models = list(_PROVIDER_MODELS.get("xai-oauth") or _PROVIDER_MODELS.get("xai") or [])
|
||||||
selected = _prompt_model_selection(models, current_model=current_model or (models[0] if models else "grok-code-fast-1"))
|
selected = _prompt_model_selection(models, current_model=current_model or (models[0] if models else "grok-4.3"))
|
||||||
if selected:
|
if selected:
|
||||||
_save_model_choice(selected)
|
_save_model_choice(selected)
|
||||||
_update_config_for_provider("xai-oauth", base_url)
|
_update_config_for_provider("xai-oauth", base_url)
|
||||||
|
|
|
||||||
|
|
@ -581,7 +581,7 @@ def test_run_conversation_codex_refreshes_after_401_and_retries(monkeypatch):
|
||||||
def _build_xai_oauth_agent(monkeypatch):
|
def _build_xai_oauth_agent(monkeypatch):
|
||||||
_patch_agent_bootstrap(monkeypatch)
|
_patch_agent_bootstrap(monkeypatch)
|
||||||
agent = run_agent.AIAgent(
|
agent = run_agent.AIAgent(
|
||||||
model="grok-code-fast-1",
|
model="grok-4.3",
|
||||||
provider="xai-oauth",
|
provider="xai-oauth",
|
||||||
api_mode="codex_responses",
|
api_mode="codex_responses",
|
||||||
base_url="https://api.x.ai/v1",
|
base_url="https://api.x.ai/v1",
|
||||||
|
|
@ -619,7 +619,7 @@ def test_build_api_kwargs_xai_oauth_sends_cache_key_via_extra_body(monkeypatch):
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
assert kwargs.get("model") == "grok-code-fast-1"
|
assert kwargs.get("model") == "grok-4.3"
|
||||||
# Top-level kwarg must NOT be set — that's the openai SDK
|
# Top-level kwarg must NOT be set — that's the openai SDK
|
||||||
# incompatibility this whole indirection exists to dodge.
|
# incompatibility this whole indirection exists to dodge.
|
||||||
assert "prompt_cache_key" not in kwargs
|
assert "prompt_cache_key" not in kwargs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue