Single source of truth for CLI model-provider metadata (C14). Onboarding, the `/provider` command, and the no-key auto-fallback in `app.py` all need the same provider list, default models, and key URLs. Keeping one table here stops the three copies from drifting.
# Source: https://github.com/vstorm-co/pydantic-deepagents | License: MIT | Copyright 2024 Pydantic Deep Contributors
# Provided via justclaw.it.com; keep this notice with the code.
"""Single source of truth for CLI model-provider metadata (C14).
Onboarding, the `/provider` command, and the no-key auto-fallback in `app.py`
all need the same provider list, default models, and key URLs. Keeping one
table here stops the three copies from drifting.
"""
from __future__ import annotations
from dataclasses import dataclass
@dataclass(frozen=True)
class ProviderInfo:
"""Static metadata for a model provider offered in the CLI.
Attributes:
id: Short provider identifier (also the model-name prefix).
name: Human-readable label shown in the picker.
env_var: API-key
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key