Documentation
¶
Overview ¶
Package initmodel provides provider-neutral chat model initialization from a "provider:model" string, mirroring langchain's init_chat_model.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedProvider = fmt.Errorf("init_chat_model: unsupported provider")
ErrUnsupportedProvider is returned when the provider id has no registered factory.
Functions ¶
func InitChatModel ¶
InitChatModel resolves a "provider:model" string to a chat model, e.g. "openai:gpt-5" or "anthropic:claude-opus-5". If no provider prefix is present, it defaults to "openai".
Types ¶
Click to show internal directories.
Click to hide internal directories.