فهرست منبع

fix:still enable SSL verification when using qdrant based on HTTP protocol (#3805)

呆萌闷油瓶 1 سال پیش
والد
کامیت
78988ed60e
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      api/core/rag/datasource/vdb/qdrant/qdrant_vector.py

+ 2 - 1
api/core/rag/datasource/vdb/qdrant/qdrant_vector.py

@@ -50,7 +50,8 @@ class QdrantConfig(BaseModel):
             return {
                 'url': self.endpoint,
                 'api_key': self.api_key,
-                'timeout': self.timeout
+                'timeout': self.timeout,
+                'verify': self.endpoint.startswith('https')
             }