1.0.9 • Published 5 months ago

@continuedev/llm-info v1.0.9

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
5 months ago

@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
1.0.9

5 months ago

1.0.8

7 months ago

1.0.7

11 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago