This commit is contained in:
parent
b1ded87cb1
commit
26a0ee7b2e
2
ai.go
2
ai.go
|
@ -3,8 +3,8 @@ package l_ai_excel_header_match
|
|||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"gitea.cdlsxd.cn/self-tools/l_ai_excel_header_match/doubao"
|
||||
|
||||
"gitea.cdlsxd.cn/self-tools/l_ai_address/ai/doubao"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ func NewDouBao(modelName string, key string) *DouBao {
|
|||
}
|
||||
}
|
||||
|
||||
func (o *DouBao) GetData(ctx context.Context, respHandle func(input string) (string, error), text ...string) (string, error) {
|
||||
func (o *DouBao) GetData(ctx context.Context, url UrlType, respHandle func(input string) (string, error), text ...string) (string, error) {
|
||||
var Message = make([]*model.ChatCompletionMessage, len(text))
|
||||
|
||||
client := arkruntime.NewClientWithApiKey(
|
||||
|
|
Loading…
Reference in New Issue