Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProvider ¶
func CreateProvider(ctx context.Context, config *ProviderConfig) (model.ToolCallingChatModel, error)
CreateProvider creates an eino ToolCallingChatModel based on the provider configuration
Types ¶
type ProviderConfig ¶
type ProviderConfig struct {
ModelString string
SystemPrompt string
ProviderAPIKey string // API key for OpenAI and Anthropic
ProviderURL string // Base URL for OpenAI, Anthropic, and Ollama
// Model generation parameters
MaxTokens int
Temperature *float32
TopP *float32
TopK *int32
StopSequences []string
// Ollama-specific parameters
NumGPU *int32
MainGPU *int32
}
ProviderConfig holds configuration for creating LLM providers
Click to show internal directories.
Click to hide internal directories.