Documentation
¶
Index ¶
- func DefaultBaseURL(p Provider) string
- func DefaultModel(p Provider) string
- func ListOllamaModels(baseURL string) ([]string, error)
- func NewChatModel(ctx context.Context, cfg Config) (model.ToolCallingChatModel, string, error)
- func ResolveModel(p Provider, model string) string
- func ResolveOllamaModel(ctx context.Context, baseURL, name string) (string, error)
- type Config
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBaseURL ¶
DefaultBaseURL 后端默认 BaseURL(Ark 走 SDK 默认,返回空)。
func ListOllamaModels ¶
ListOllamaModels 拉取本机 Ollama 已安装模型名。
func NewChatModel ¶
NewChatModel 按 Provider 构造 Eino ToolCallingChatModel。
Types ¶
type Config ¶
type Config struct {
Provider Provider
APIKey string
BaseURL string
Model string
// Thinking:DeepSeek / 千问 / Ark / Ollama 等思考开关;MiniMax→adaptive|disabled。
Thinking bool
}
Config 构造 ChatModel 的参数。
Click to show internal directories.
Click to hide internal directories.