Skip to content

Commit 4f1f052

Browse files
authored
feat: support third part models of baidu (songquanpeng#1046)
百度千帆平台上的第三方大模型调用
1 parent 687cb65 commit 4f1f052

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

relay/channel/baidu/adaptor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ func (a *Adaptor) GetRequestURL(meta *util.RelayMeta) (string, error) {
3636
fullRequestURL = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/bloomz_7b1"
3737
case "Embedding-V1":
3838
fullRequestURL = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings/embedding-v1"
39+
default:
40+
fullRequestURL = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/" + meta.ActualModelName
3941
}
4042
var accessToken string
4143
var err error

0 commit comments

Comments
 (0)