* Add latest model definitions across providers Add new models for OpenAI (gpt-4.1, gpt-5.2, codex-mini, o1/o3/o4-mini), Gemini (2.5 stable, 2.5-flash-lite, 3-flash-preview), Mistral (devstral, magistral, ministral, mistral-nemo), xAI (grok-4-fast, grok-4-1-fast, grok-3-fast), and Bedrock (Claude 4.5/4.6, Nova, Llama 4, DeepSeek). Update tool support and reasoning detection for the new model families. * Add Z.ai (GLM) provider, Kimi K2/K2.5 models, and fix OpenRouter tool support bug - Add Z.ai as a new provider with GLM-5, GLM-4.7, GLM-4-plus, GLM-4.5 models - Add Kimi K2 and K2.5 model packages to Moonshot provider - Fix variable shadowing bug in OpenRouter tool support where loop variables shadowed the outer model parameter, causing specificModels and supportedContains checks to always return true - Add moonshotai/kimi and zai-org/glm to OpenRouter supported prefixes - Add Z.ai and Moonshot to docs navigation * Clean up unnecessary import aliases for zAI * Add Z.ai Coding Plan endpoint note to docs * Replace placeholder zai.png icon with proper zAI.svg * Add zAI provider to openai-adapters * Fix Z.ai API key URL |
||
|---|---|---|
| .. | ||
| src | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| release.config.js | ||
| tsconfig.json | ||
@continuedev/llm-info
A lightweight package providing information about various Large Language Models (LLMs), including embedding, reranking, and other models.
Whereas @continuedev/openai-adapters is responsible for translation between API types, @continuedev/llm-info is concerned with
- Templates
- Capabilities (e.g. tools, images, streaming, predicted outputs, etc.)
- Model aliases
and openai-adapters might depend on llm-info for some of these things.
Goal
We know we are done when the steps required to add support for a new model in Continue are exactly
- editing a single LlmInfo object, and
- adding it to the supporting ModelProviders.
Code structure
The two primary types are LlmInfo and ModelProvider
Models are defined on their own in the models directory. They can be grouped however makes sense.
Providers are defined in the providers directory, with all models that they support in their models attribute. It's important that models are tied to providers, because the model might have slightly different attributes (e.g. context length) per provider. Define as much as possible in the base object, and then spread to update for the specific providers as needed.
Where to use llm-info
- Replace autodetect.ts
- See usage in
BaseLLMconstructor, and finish the job of using llm-info everywhere relevant. - Replace
gui/pages/AddNewModel/configs/[providers/models].ts