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()