fix: 修改订单号参数类型为interface
This commit is contained in:
parent
965719774a
commit
a9a05c19e9
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"ai_scheduler/internal/pkg"
|
"ai_scheduler/internal/pkg"
|
||||||
"ai_scheduler/internal/pkg/utils_vllm"
|
"ai_scheduler/internal/pkg/utils_vllm"
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gofiber/fiber/v2/log"
|
|
||||||
"github.com/ollama/ollama/api"
|
"github.com/ollama/ollama/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -31,7 +31,7 @@ func (f *WithSys) CreatePrompt(ctx context.Context, rec *entitys.Recognize) (mes
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
log.Infof("生成prompt:%s", content.String())
|
|
||||||
// 构建提示消息列表,包含系统提示、助手回复和用户内容
|
// 构建提示消息列表,包含系统提示、助手回复和用户内容
|
||||||
mes = append(prompt, api.Message{
|
mes = append(prompt, api.Message{
|
||||||
Role: "system", // 系统角色
|
Role: "system", // 系统角色
|
||||||
|
|
@ -43,7 +43,7 @@ func (f *WithSys) CreatePrompt(ctx context.Context, rec *entitys.Recognize) (mes
|
||||||
Role: "user", // 用户角色
|
Role: "user", // 用户角色
|
||||||
Content: content.String(), // 用户输入内容
|
Content: content.String(), // 用户输入内容
|
||||||
})
|
})
|
||||||
|
fmt.Printf("[意图识别]最终prompt:%v", mes)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue