Module default_models

Module default_models 

Source
Expand description

Centralized default AI model constants for all providers.

This module provides a single source of truth for default model identifiers across OpenAI, Anthropic, Grok, Gemini, and Ollama providers. These constants are used as default values in AppConfig structs (e.g. serde defaults).

§Model Selection Precedence

The system uses the following precedence for model selection:

  1. User configuration (from ~/.gestura/config.yaml)
  2. API discovery (dynamic model lists from provider APIs)

There are no static fallback lists — if the API is unreachable or no API key is configured, the model list is empty and the UI communicates this to the user.

Constants§

DEFAULT_ANTHROPIC_MODEL
Default Anthropic model for agent/completion tasks.
DEFAULT_GEMINI_BASE_URL
Default Gemini API base URL (Google AI Studio / Generative Language API).
DEFAULT_GEMINI_MODEL
Default Gemini model for agent/completion tasks.
DEFAULT_GROK_MODEL
Default Grok model for agent/completion tasks.
DEFAULT_OLLAMA_BASE_URL
Default Ollama base URL for local inference.
DEFAULT_OLLAMA_MODEL
Default Ollama model for local inference.
DEFAULT_OPENAI_MODEL
Default OpenAI model for agent/completion tasks.
DEFAULT_OPENAI_STT_MODEL
Default OpenAI model for speech-to-text transcription.