continue-custom/packages/llm-info
Dallin Romney c71acb8e4b
fix: resolve critical and high security vulnerabilities (#11848)
* fix: resolve critical and high security vulnerabilities across packages

Bump vulnerable dependencies and remove unused `request` package to
address ~351 of ~394 npm audit vulnerabilities reported by GitHub.

* fix: handle nullable textContent from @mozilla/readability v0.6.0

readability.textContent can be undefined in v0.6.0, add nullish
coalescing to satisfy ArticleComponent.body type constraint.
2026-03-26 10:46:44 -07:00
..
src fix(gemini): update model catalog for retired/new Gemini models (#11793) 2026-03-24 20:22:47 -07:00
package-lock.json fix: resolve critical and high security vulnerabilities (#11848) 2026-03-26 10:46:44 -07:00
package.json fix: resolve critical and high security vulnerabilities (#11848) 2026-03-26 10:46:44 -07:00
README.md notes on llm-info goals 2024-12-08 20:11:00 -08:00
release.config.js release automation for openai-adapters, llm-info, and fetch 2025-06-22 00:58:55 -07:00
tsconfig.json Preview (#1750) 2024-07-28 23:16:18 -07:00

@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

  1. editing a single LlmInfo object, and
  2. 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 BaseLLM constructor, and finish the job of using llm-info everywhere relevant.
  • Replace gui/pages/AddNewModel/configs/[providers/models].ts