diff --git a/hermes_cli/main.py b/hermes_cli/main.py index 5b180fc29..96345c485 100644 --- a/hermes_cli/main.py +++ b/hermes_cli/main.py @@ -1474,7 +1474,11 @@ def _model_flow_custom(config): f"Hermes will still save it." ) if probe.get("suggested_base_url"): - print(f" If this server expects /v1, try base URL: {probe['suggested_base_url']}") + suggested = probe["suggested_base_url"] + if suggested.endswith("/v1"): + print(f" If this server expects /v1 in the path, try base URL: {suggested}") + else: + print(f" If /v1 should not be in the base URL, try: {suggested}") # Select model — use probe results when available, fall back to manual input model_name = "" diff --git a/hermes_cli/models.py b/hermes_cli/models.py index ce89bdeac..b55249a70 100644 --- a/hermes_cli/models.py +++ b/hermes_cli/models.py @@ -1532,7 +1532,7 @@ def probe_api_models( return { "models": None, - "probed_url": tried[-1] if tried else normalized.rstrip("/") + "/models", + "probed_url": tried[0] if tried else normalized.rstrip("/") + "/models", "resolved_base_url": normalized, "suggested_base_url": alternate_base if alternate_base != normalized else None, "used_fallback": False,