Prechádzať zdrojové kódy

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

呆萌闷油瓶 1 rok pred
rodič
commit
78988ed60e

+ 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')
             }