Skip to content

feat(cli): fetch models dynamically from OpenRouter public API#18

Open
iliassjabali wants to merge 1 commit intomainfrom
feat/improve-init-wizard
Open

feat(cli): fetch models dynamically from OpenRouter public API#18
iliassjabali wants to merge 1 commit intomainfrom
feat/improve-init-wizard

Conversation

@iliassjabali
Copy link
Copy Markdown
Collaborator

After selecting a provider, the init wizard now fetches available models from OpenRouter's public /api/v1/models endpoint (no API key required), filters by provider prefix, and presents them as a selectable list.

Falls back to a text input with the hardcoded default if the fetch fails (offline, timeout, etc). The --yes flag still uses PROVIDER_DEFAULTS with no network calls.

After selecting a provider, the init wizard now fetches available models
from OpenRouter's public /api/v1/models endpoint (no API key required),
filters by provider prefix, and presents them as a selectable list.

Falls back to a text input with the hardcoded default if the fetch fails
(offline, timeout, etc). The --yes flag still uses PROVIDER_DEFAULTS
with no network calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant