Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

b3nw
Copy link
Contributor

@b3nw b3nw commented Oct 7, 2025

Context

feat: Add nano-gpt provider support
Implements nano-gpt as a new provider with dynamic model list fetching.

How to Test

Configurre key from nano-gpt.com and select models from dynamic list.

Get in Touch

@b3nw in discord

b3nw added 6 commits October 5, 2025 22:40
Implemented full support for Nano-GPT as a dynamic provider with three model list options:
- Canonical models list (all): 448 public models without authentication
- Subscription-only list: 221 models requiring subscription
- Personalized list: User's curated models (requires API key)

Key Features:
- Fetches detailed model info using ?detailed=true API parameter
- Displays real context windows, max tokens, and pricing per model
- Proper API key handling (only sent for personalized/subscription endpoints)
- Cache differentiation per model list type using enhanced cache keys
- Handles null values in API responses (context_length, cost_estimate)
- Model dropdown in chat window now shows all nano-gpt models
- Added user guidance text for refreshing model list after changing selection

Technical Changes:
- Updated Zod schema to accept nullable fields from API
- Enhanced modelCache.ts with composite cache keys (nano-gpt:all, etc.)
- Added nano-gpt case to useProviderModels hook for chat window
- Updated React Query keys to include nanoGptApiKey and nanoGptModelList
- Added nano-gpt to router models type definitions

Fixes:
- Schema validation errors for models with null context_length
- API key filtering causing only 221 models on "all" endpoint
- Chat window model dropdown not showing nano-gpt models
- Cache not invalidating when switching between model list types
- Add nano-gpt provider configuration and settings
- Implement nano-gpt API integration for model fetching
- Add nano-gpt provider UI components
Copy link

changeset-bot bot commented Oct 7, 2025

🦋 Changeset detected

Latest commit: 8d90413

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@b3nw b3nw changed the title Feat/nano gpt Feat/add nano-gpt provider Oct 7, 2025
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.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.