Skip to content

Commit

Permalink
feat: support third part models of baidu (#1046)
Browse files Browse the repository at this point in the history
百度千帆平台上的第三方大模型调用
  • Loading branch information
momomobinx authored Mar 3, 2024
1 parent 95cfb8e commit 4fb22ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions relay/channel/baidu/adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func (a *Adaptor) GetRequestURL(meta *util.RelayMeta) (string, error) {
fullRequestURL = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/bloomz_7b1"
case "Embedding-V1":
fullRequestURL = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings/embedding-v1"
default:
fullRequestURL = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/" + meta.ActualModelName
}
var accessToken string
var err error
Expand Down

0 comments on commit 4fb22ad

Please sign in to comment.