models

package
v2.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// ExtraFamily is the model family Copilot names, and ExtraVersion the version it serves.
	ExtraFamily  = "family"
	ExtraVersion = "version"
	// ExtraPreview is true when Copilot marks the model as a preview.
	ExtraPreview = "preview"
	// ExtraPremium is true when the model spends the plan's premium requests, and ExtraMultiplier is the count of premium requests
	// that one request spends.
	ExtraPremium    = "premium"
	ExtraMultiplier = "premium_multiplier"
	// ExtraFallback is true when Copilot uses the model as its fallback.
	ExtraFallback = "chat_fallback"
	// ExtraCategory is the model picker's category for the model.
	ExtraCategory = "picker_category"
	// ExtraPolicy is the account's policy state for the model, such as enabled, and ExtraTerms the terms it asks the account to accept.
	ExtraPolicy = "policy_state"
	ExtraTerms  = "policy_terms"
	// ExtraTokenizer is the tokenizer Copilot names for the model, such as a tiktoken encoding.
	ExtraTokenizer = "tokenizer"
	// ExtraEndpoints is the list of API paths Copilot serves the model on.
	ExtraEndpoints = "endpoints"
	// ExtraStreaming and ExtraParallelTools are the model's stated streaming and parallel tool call support.
	ExtraStreaming     = "streaming"
	ExtraParallelTools = "parallel_tool_calls"
	// ExtraImages is the image limit for one prompt, ExtraImageSize the image size limit in bytes, ExtraMediaTypes the image types.
	ExtraImages     = "max_prompt_images"
	ExtraImageSize  = "max_prompt_image_size"
	ExtraMediaTypes = "image_media_types"
	// ExtraNonStreamingOutput is the output cap for a request that does not stream.
	ExtraNonStreamingOutput = "max_non_streaming_output"
	// ExtraThinkingBudget and ExtraThinkingFloor are the upper and lower limits of the model's reasoning budget.
	ExtraThinkingBudget = "max_thinking_budget"
	ExtraThinkingFloor  = "min_thinking_budget"
)

Extra keys a listed row carries, for the kind's own hooks and the API note.

Variables

This section is empty.

Functions

func Register

func Register(registry *models.Registry)

func Row

func Row(item map[string]any) (provider.Facts, bool)

Row returns the facts that an item in a Copilot models reply states. ok is false when the item has no id.

func Rows

func Rows(data any) ([]provider.Facts, bool)

Rows returns the facts for every model in a Copilot models reply, in the reply's order. The picker flag hides a model, unless the reply does not enable any chat model in the picker, which means the account's reply does not use the flag. ok is false when the reply is not a list.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL