Skip to content

ollama创建模型时, 开启Thinking未生效, #969

@jxincan

Description

@jxincan

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请求, 没有标签

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions