fix(workflow): model reasoning (#555)
This commit is contained in:
@@ -24,8 +24,6 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"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/callbacks"
|
||||||
"github.com/cloudwego/eino/components/model"
|
"github.com/cloudwego/eino/components/model"
|
||||||
"github.com/cloudwego/eino/components/prompt"
|
"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 {
|
func getReasoningContent(message *schema.Message) string {
|
||||||
c, ok := deepseek.GetReasoningContent(message)
|
return message.ReasoningContent
|
||||||
if ok {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
|
|
||||||
c, ok = ark.GetReasoningContent(message)
|
|
||||||
if ok {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
|
|
||||||
return ""
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Options struct {
|
type Options struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user