feat: add Apertis to provider migration mapping#7205
Conversation
Move Apertis from UNSUPPORTED_PROVIDERS to PROVIDER_MAP with proper field mappings (apertisApiKey, apertisModelId, apertisBaseUrl) so legacy VS Code extension settings migrate correctly to the new CLI backend.
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)No new issues on the current PR diff. The previous Other Observations (not in diff)Issues found in changed files outside the current PR diff and therefore not eligible for inline comments:
Files Reviewed (13 files)
Fix these issues in Kilo Cloud Reviewed by gpt-5.4-20260305 · 1,138,300 tokens |
|
Hey @theQuert — the migration mapping looks structurally correct (the legacy field names The migration code writes the API key to the CLI backend's auth store under
So after migration, the API key would be stored in auth but there'd be no provider to consume it — the user would see no Apertis option in the model picker. Could you elaborate on how you expect this to work? Would this need a companion PR to add Apertis to models.dev? Or should the migration |
|
@markijbema Thanks for the detailed review! You're right — the migration was storing the API key under I've added Apertis as a registered provider in the CLI:
This means after migration, the stored API key is consumed by the registered Pushing the changes now. |
Add Apertis provider to the CLI backend so the migration mapping (id: "apertis") has a matching provider to consume the stored API key. - Inject apertis in ModelsDev.get() using @ai-sdk/openai-compatible - Add model fetching from api.apertis.ai/v1/models (OpenAI format) - Add auth resolution: Config > Auth store > APERTIS_API_KEY env var
6810bdd
…provider feat: add Apertis to provider migration mapping
Summary
UNSUPPORTED_PROVIDERStoPROVIDER_MAPin the legacy migration mappingapertisApiKey,apertisModelId,apertisBaseUrlApertis is an OpenAI-compatible AI gateway at
https://api.apertis.aisupporting 470+ models. The original Apertis provider was added in #5247 (VS Code extension). This PR enables the provider in the new architecture.Test plan
UNSUPPORTED_PROVIDERSwarningsbun typecheck)