LanguageModelChatInformation

Represents a language model provided by a {@linkcode LanguageModelChatProvider}.

Online Documentation

Properties

Link copied to clipboard
abstract val detail: String?

An optional, human-readable string which will be rendered alongside the model. Useful for distinguishing models of the same name in the UI.

Link copied to clipboard
abstract val family: String

Opaque family-name of the language model. Values might be gpt-3.5-turbo, gpt4, phi2, or llama

Link copied to clipboard
abstract val id: String

Unique identifier for the language model. Must be unique per provider, but not required to be globally unique.

Link copied to clipboard
abstract val maxInputTokens: Int

The maximum number of tokens the model can accept as input.

Link copied to clipboard
abstract val maxOutputTokens: Int

The maximum number of tokens the model is capable of producing.

Link copied to clipboard
abstract val name: String

Human-readable name of the language model.

Link copied to clipboard
abstract val tooltip: String?

The tooltip to render when hovering the model. Used to provide more information about the model.

Link copied to clipboard
abstract val version: String

Opaque version string of the model. This is used as a lookup value in {@linkcode LanguageModelChatSelector.version} An example is how GPT 4o has multiple versions like 2024-11-20 and 2024-08-06