From b490c7d23dee51ecde9a329d66621e7dad266edb Mon Sep 17 00:00:00 2001 From: JYF <1470892937@qq.com> Date: Thu, 5 Feb 2026 16:35:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=E3=80=8C/=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StaticAnalysisCensor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/StaticAnalysisCensor.py b/StaticAnalysisCensor.py index 1d4faca..2250d1e 100644 --- a/StaticAnalysisCensor.py +++ b/StaticAnalysisCensor.py @@ -14,7 +14,7 @@ import tree_sitter_cpp from openai import OpenAI # 配置指向 DashScope 的 OpenAI 兼容 endpoint -DASHSCOPE_API_KEY = "sk-b51bf9fea0b3447896ce6d3a150f4a67" +DASHSCOPE_API_KEY = "" BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1" # 创建客户端(替代旧的 openai.api_key / openai.api_base) @@ -23,8 +23,8 @@ client = OpenAI( base_url=BASE_URL ) EMBEDDING_MODEL_NAME = "text-embedding-v4" -KB_INDEX_PATH = "C:/Users\surface\Desktop/vector-knowledge/satellite_rag.faiss" -KB_META_PATH = "C:/Users\surface\Desktop/vector-knowledge/satellite_rag_metadata.json" +KB_INDEX_PATH = "" +KB_META_PATH = "" CPP_LANGUAGE = Language(tree_sitter_cpp.language()) parser = Parser()