mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-18 00:16:37 +08:00
/api/embeddings is deprecated, use /api/embed.
/api/embeddings is deprecated, use /api/embed.
This commit is contained in:
parent
139a104b26
commit
e523555844
@ -31,7 +31,7 @@ func (a *Adaptor) Init(info *relaycommon.RelayInfo) {
|
|||||||
func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) {
|
func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) {
|
||||||
switch info.RelayMode {
|
switch info.RelayMode {
|
||||||
case relayconstant.RelayModeEmbeddings:
|
case relayconstant.RelayModeEmbeddings:
|
||||||
return info.BaseUrl + "/api/embeddings", nil
|
return info.BaseUrl + "/api/embed", nil
|
||||||
default:
|
default:
|
||||||
return relaycommon.GetFullRequestURL(info.BaseUrl, info.RequestURLPath, info.ChannelType), nil
|
return relaycommon.GetFullRequestURL(info.BaseUrl, info.RequestURLPath, info.ChannelType), nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user