Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LanguageModel ¶
type LanguageModel struct { codersdk.LanguageModel StreamFunc StreamFunc }
type LanguageModels ¶
type LanguageModels map[string]LanguageModel
LanguageModels is a map of language model ID to language model.
func ModelsFromConfig ¶
func ModelsFromConfig(ctx context.Context, configs []codersdk.AIProviderConfig) (LanguageModels, error)
type StreamFunc ¶
type StreamFunc func(ctx context.Context, options StreamOptions) (aisdk.DataStream, error)
type StreamOptions ¶
Click to show internal directories.
Click to hide internal directories.