From 78988ed60eea0bb145915e5b96b85f81c6dad972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=86=E8=90=8C=E9=97=B7=E6=B2=B9=E7=93=B6?= <253605712@qq.com> Date: Thu, 25 Apr 2024 13:04:31 +0800 Subject: [PATCH] fix:still enable SSL verification when using qdrant based on HTTP protocol (#3805) --- api/core/rag/datasource/vdb/qdrant/qdrant_vector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/core/rag/datasource/vdb/qdrant/qdrant_vector.py b/api/core/rag/datasource/vdb/qdrant/qdrant_vector.py index 2d0bb90094..3e39978596 100644 --- a/api/core/rag/datasource/vdb/qdrant/qdrant_vector.py +++ b/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') }