Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(api): filter out model aliases from Claude models list

cyhhaofa3ec06b13be
diff --git a/vibe/api.py b/vibe/api.py
index d6c91c550..57659f272 100644
--- a/vibe/api.py
+++ b/vibe/api.py
@@ -698,7 +698,8 @@ def claude_models() -> dict:
data = json.loads(settings_path.read_text(encoding="utf-8"))
if isinstance(data, dict):
model = data.get("model")
- if isinstance(model, str) and model.strip():
+ # Only add full model names (e.g., "claude-sonnet-4"), not aliases like "opus"
+ if isinstance(model, str) and model.strip() and model.strip().startswith("claude-"):
options.append(model.strip())
env = data.get("env")
if isinstance(env, dict):
@@ -707,7 +708,8 @@ def claude_models() -> dict:
"ANTHROPIC_SMALL_FAST_MODEL",
):
value = env.get(key)
- if isinstance(value, str) and value.strip():
+ # Only add full model names
+ if isinstance(value, str) and value.strip() and value.strip().startswith("claude-"):
options.append(value.strip())
except Exception as exc:
logger.warning("Failed to read Claude settings.json: %s", exc, exc_info=True)