fix(workflow): model reasoning (#555)

This commit is contained in:
junwen-lee 2025-08-05 10:14:25 +08:00 committed by GitHub
parent 0367e66eca
commit f02c08c58b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 13 deletions

View File

@ -24,8 +24,6 @@ import (
"strconv"
"strings"
"github.com/cloudwego/eino-ext/components/model/ark"
"github.com/cloudwego/eino-ext/components/model/deepseek"
"github.com/cloudwego/eino/callbacks"
"github.com/cloudwego/eino/components/model"
"github.com/cloudwego/eino/components/prompt"
@ -217,17 +215,7 @@ func jsonParse(ctx context.Context, data string, schema_ map[string]*vo.TypeInfo
}
func getReasoningContent(message *schema.Message) string {
c, ok := deepseek.GetReasoningContent(message)
if ok {
return c
}
c, ok = ark.GetReasoningContent(message)
if ok {
return c
}
return ""
return message.ReasoningContent
}
type Options struct {