From bbc842d31ec8824a71f06a5a977519ab4eba8572 Mon Sep 17 00:00:00 2001 From: Jaaneek Date: Tue, 16 Jun 2026 16:58:22 +0000 Subject: [PATCH] feat(xai): default to grok-build-0.1 Switch the default model for the xAI/Grok provider and the xAI web search backend from grok-4.3 to grok-build-0.1. grok-build-0.1 is already recognized by the model metadata, so no new model definition is required; grok-4.3 remains selectable. --- hermes_cli/model_setup_flows.py | 2 +- hermes_cli/models.py | 3 ++- plugins/web/xai/provider.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hermes_cli/model_setup_flows.py b/hermes_cli/model_setup_flows.py index 203f48d739d..1af46ab40aa 100644 --- a/hermes_cli/model_setup_flows.py +++ b/hermes_cli/model_setup_flows.py @@ -517,7 +517,7 @@ def _model_flow_xai_oauth(_config, current_model="", *, args=None): pass 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-4.3")) + selected = _prompt_model_selection(models, current_model=current_model or (models[0] if models else "grok-build-0.1")) if selected: _save_model_choice(selected) _update_config_for_provider("xai-oauth", base_url) diff --git a/hermes_cli/models.py b/hermes_cli/models.py index 331424dbcd3..a80a54e84f9 100644 --- a/hermes_cli/models.py +++ b/hermes_cli/models.py @@ -110,6 +110,7 @@ def _codex_curated_models() -> list[str]: # (grok-4, grok-4-0709, grok-4-fast{,-reasoning,-non-reasoning}, # grok-4-1-fast{,-reasoning,-non-reasoning}, grok-code-fast-1 → grok-4.3). _XAI_STATIC_FALLBACK: list[str] = [ + "grok-build-0.1", "grok-4.3", "grok-4.20-0309-reasoning", "grok-4.20-0309-non-reasoning", @@ -117,7 +118,7 @@ _XAI_STATIC_FALLBACK: list[str] = [ ] -_XAI_TOP_MODEL = "grok-4.3" +_XAI_TOP_MODEL = "grok-build-0.1" def _xai_promote_top(ids: list[str]) -> list[str]: diff --git a/plugins/web/xai/provider.py b/plugins/web/xai/provider.py index 2b86238d11b..5cec39b91f5 100644 --- a/plugins/web/xai/provider.py +++ b/plugins/web/xai/provider.py @@ -46,7 +46,7 @@ from tools.xai_http import ( logger = logging.getLogger(__name__) -DEFAULT_MODEL = "grok-4.3" +DEFAULT_MODEL = "grok-build-0.1" DEFAULT_TIMEOUT = 90 _MAX_DOMAIN_FILTERS = 5 # xAI hard cap on allowed_domains / excluded_domains