Explorar el Código

Merge pull request #548 from utopeadia/main

ollama /api/embeddings is deprecated, use /api/embed.
Calcium-Ion hace 1 año
padre
commit
aaf3f09eec
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      relay/channel/ollama/adaptor.go

+ 1 - 1
relay/channel/ollama/adaptor.go

@@ -31,7 +31,7 @@ func (a *Adaptor) Init(info *relaycommon.RelayInfo) {
 func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) {
 	switch info.RelayMode {
 	case relayconstant.RelayModeEmbeddings:
-		return info.BaseUrl + "/api/embeddings", nil
+		return info.BaseUrl + "/api/embed", nil
 	default:
 		return relaycommon.GetFullRequestURL(info.BaseUrl, info.RequestURLPath, info.ChannelType), nil
 	}