embed "github.com/cloudwego/eino-ext/components/embedding/ollama"
"github.com/cloudwego/eino-ext/components/model/ollama"
func (widget *WidgetChat) GetChatModel(ctx context.Context, model string) (*ollama.ChatModel, error) {
return ollama.NewChatModel(ctx, &ollama.ChatModelConfig{
BaseURL: tarot.App.Business.Ollama.Address,
Model: model,
Thinking: &api.ThinkValue{Value: true},
})
}
配置了Thinking, 前端sse请求, 没有标签
embed "github.com/cloudwego/eino-ext/components/embedding/ollama"
"github.com/cloudwego/eino-ext/components/model/ollama"
func (widget *WidgetChat) GetChatModel(ctx context.Context, model string) (*ollama.ChatModel, error) {
return ollama.NewChatModel(ctx, &ollama.ChatModelConfig{
BaseURL: tarot.App.Business.Ollama.Address,
Model: model,
Thinking: &api.ThinkValue{Value: true},
})
}
配置了Thinking, 前端sse请求, 没有标签