使用 5001 的向量服务

This commit is contained in:
2023-11-17 01:12:22 +08:00
parent aa05cd952f
commit 9cd4f917cc
2 changed files with 1 additions and 4 deletions

View File

@@ -114,7 +114,7 @@ func GetNetWorkEmbedding(id int) (embedding []float32) {
host := viper.GetString("embedding.host")
port := viper.GetInt("embedding.port")
httpClient := &http.Client{}
request, err := http.NewRequest("PUT", fmt.Sprintf("http://%s:%d/reverse/%d", host, port, id), nil)
request, err := http.NewRequest("PUT", fmt.Sprintf("http://%s:%d/api/default/%d", host, port, id), nil)
if err != nil {
log.Println("请求失败:", err)
return