Langchain-Chatchat(原Langchain-ChatGLM)基于 Langchain 与 ChatGLM, Qwen 与 Llama 等语言模型的 RAG 与 Agent 应用 | Langchain-Chatchat (formerly langchain-ChatGLM), local knowledge based LLM (like ChatGLM, Qwen and Llama) RAG and Agent app with langchain
This report summarizes scanner evidence for chatchat-space/Langchain-Chatchat, a Python project with 38,711 GitHub stars. SynthScan examined 48,820 lines of code across 425 source files, recording 827 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 19.5 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.
Can maintainers explain intent, assumptions, and trade-offs? 235 finding(s).
Are imports declared and package/API names verified? 410 finding(s).
Are wrappers, guards, and repeated structures necessary? 284 finding(s).
Which changes need focused human review? 827 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 827 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | release.py | 1 | CODE | |
| LOW | libs/python-sdk/open_chatcaht/exceptions.py | 1 | CODE | |
| LOW | libs/python-sdk/open_chatcaht/exceptions.py | 4 | CODE | |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 2 | CODE | |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 6 | CODE | |
| LOW | …aht/types/knowledge_base/doc/upload_temp_docs_param.py | 1 | CODE | |
| LOW | …aht/types/knowledge_base/doc/upload_temp_docs_param.py | 1 | CODE | |
| LOW | …caht/types/knowledge_base/doc/download_kb_doc_param.py | 1 | CODE | |
| LOW | libs/python-sdk/open_chatcaht/api/chat/chat_client.py | 3 | CODE | |
| LOW | …chatcaht/api/standard_openai/standard_openai_client.py | 3 | CODE | |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 1 | CODE | |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 3 | CODE | |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 8 | CODE | |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 9 | CODE | |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 11 | CODE | |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 21 | CODE | |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 23 | CODE | |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 25 | CODE | |
| LOW | libs/python-sdk/tests/装饰器声明请求_test1.py | 1 | CODE | |
| LOW | libs/python-sdk/tests/chat_test.py | 1 | CODE | |
| LOW | libs/python-sdk/tests/kb_test.py | 1 | CODE | |
| LOW | libs/python-sdk/tests/kb_test.py | 3 | CODE | |
| LOW | libs/python-sdk/tests/kb_test.py | 4 | CODE | |
| LOW | libs/python-sdk/tests/standard_openai_test.py | 1 | CODE | |
| LOW | libs/python-sdk/tests/standard_openai_test.py | 2 | CODE | |
| LOW | libs/python-sdk/tests/server_test.py | 1 | CODE | |
| LOW | libs/chatchat-server/langchain_chatchat/__init__.py | 3 | CODE | |
| LOW | libs/chatchat-server/langchain_chatchat/__init__.py | 4 | CODE | |
| LOW | …atchat-server/langchain_chatchat/embeddings/zhipuai.py | 2 | CODE | |
| LOW | …atchat-server/langchain_chatchat/embeddings/zhipuai.py | 7 | CODE | |
| LOW | …atchat-server/langchain_chatchat/embeddings/zhipuai.py | 7 | CODE | |
| LOW | …atchat-server/langchain_chatchat/embeddings/zhipuai.py | 7 | CODE | |
| LOW | …atchat-server/langchain_chatchat/embeddings/zhipuai.py | 7 | CODE | |
| LOW | …atchat-server/langchain_chatchat/embeddings/zhipuai.py | 7 | CODE | |
| LOW | …langchain_chatchat/callbacks/agent_callback_handler.py | 2 | CODE | |
| LOW | …langchain_chatchat/callbacks/agent_callback_handler.py | 3 | CODE | |
| LOW | …langchain_chatchat/callbacks/agent_callback_handler.py | 3 | CODE | |
| LOW | …langchain_chatchat/callbacks/agent_callback_handler.py | 6 | CODE | |
| LOW | …langchain_chatchat/callbacks/agent_callback_handler.py | 7 | CODE | |
| LOW | …langchain_chatchat/callbacks/agent_callback_handler.py | 7 | CODE | |
| LOW | …langchain_chatchat/callbacks/agent_callback_handler.py | 10 | CODE | |
| LOW | …langchain_chatchat/callbacks/agent_callback_handler.py | 10 | CODE | |
| LOW | …langchain_chatchat/callbacks/agent_callback_handler.py | 10 | CODE | |
| LOW | …langchain_chatchat/callbacks/agent_callback_handler.py | 14 | CODE | |
| LOW | …langchain_chatchat/callbacks/agent_callback_handler.py | 15 | CODE | |
| LOW | …atchat-server/langchain_chatchat/callbacks/__init__.py | 10 | CODE | |
| LOW | …t-server/langchain_chatchat/callbacks/core/protocol.py | 1 | CODE | |
| LOW | …t-server/langchain_chatchat/callbacks/core/protocol.py | 2 | CODE | |
| LOW | …t-server/langchain_chatchat/callbacks/core/protocol.py | 2 | CODE | |
| LOW | …t-server/langchain_chatchat/callbacks/core/protocol.py | 2 | CODE | |
| LOW | …t-server/langchain_chatchat/callbacks/core/protocol.py | 4 | CODE | |
| LOW | …chat-server/langchain_chatchat/chat_models/__init__.py | 2 | CODE | |
| LOW | …ngchain_chatchat/chat_models/platform_tools_message.py | 3 | CODE | |
| LOW | …ngchain_chatchat/chat_models/platform_tools_message.py | 6 | CODE | |
| LOW | …ngchain_chatchat/chat_models/platform_tools_message.py | 11 | CODE | |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 4 | CODE | |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 28 | CODE | |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 28 | CODE | |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 28 | CODE | |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 37 | CODE | |
| 343 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/contributing/agent.md | 52 | except Exception as e: | CODE |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 77 | except Exception as e: | CODE |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 102 | except Exception as e: | CODE |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 124 | except Exception as e: | CODE |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 156 | except Exception as e: | CODE |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 178 | except Exception as e: | CODE |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 201 | except Exception as e: | CODE |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 223 | except Exception as e: | CODE |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 248 | except Exception as e: | CODE |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 309 | except Exception as err: | CODE |
| MEDIUM | libs/python-sdk/open_chatcaht/api_client.py | 310 | print(f"An error occurred: {err}") | CODE |
| MEDIUM | libs/python-sdk/open_chatcaht/api_client.py | 138 | def ret_async(response, as_json): | CODE |
| MEDIUM | libs/python-sdk/open_chatcaht/api_client.py | 183 | def ret_sync(response, as_json): | CODE |
| MEDIUM | libs/python-sdk/open_chatcaht/api_client.py | 245 | def to_json(r): | CODE |
| MEDIUM | libs/python-sdk/open_chatcaht/api_client.py | 288 | def inner(*args, **kwargs): | CODE |
| LOW | libs/python-sdk/tests/装饰器声明请求_test1.py | 34 | except Exception as err: | CODE |
| MEDIUM | libs/python-sdk/tests/装饰器声明请求_test1.py | 35 | print(f"An error occurred: {err}") | CODE |
| MEDIUM | libs/python-sdk/tests/装饰器声明请求_test1.py | 17 | def inner(*args, **kwargs): | CODE |
| LOW⚡ | libs/python-sdk/tests/装饰器声明请求_test.py | 44 | except Exception as err: | CODE |
| MEDIUM⚡ | libs/python-sdk/tests/装饰器声明请求_test.py | 45 | print(f"An error occurred: {err}") | CODE |
| MEDIUM | libs/python-sdk/tests/装饰器声明请求_test.py | 22 | def inner(*args, **kwargs): | CODE |
| LOW | …ngchain_chatchat/chat_models/platform_tools_message.py | 101 | except Exception as e: | CODE |
| LOW | …ngchain_chatchat/chat_models/platform_tools_message.py | 279 | except Exception: | CODE |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 610 | except Exception as e: | CODE |
| LOW | …_chatchat/agents/output_parsers/glm3_output_parsers.py | 51 | except Exception as e: | CODE |
| LOW | …ts/output_parsers/platform_knowledge_output_parsers.py | 113 | except Exception as e: | CODE |
| LOW | …agents/output_parsers/tools_output/code_interpreter.py | 127 | except Exception as e: | CODE |
| LOW | …hat/agents/output_parsers/tools_output/drawing_tool.py | 128 | except Exception as e: | CODE |
| LOW | …chat/agents/output_parsers/tools_output/web_browser.py | 125 | except Exception as e: | CODE |
| LOW | …hatchat/agents/output_parsers/tools_output/function.py | 94 | except Exception as e: | CODE |
| LOW | …erver/langchain_chatchat/agents/platform_tools/base.py | 97 | except Exception as e: | CODE |
| LOW | …ngchain_chatchat/agents/format_scratchpad/all_tools.py | 41 | except Exception: | CODE |
| LOW | …er/langchain_chatchat/agent_toolkits/mcp_kit/client.py | 306 | except Exception: | CODE |
| MEDIUM | …er/langchain_chatchat/agent_toolkits/mcp_kit/client.py | 291 | def __aenter__(self) -> "MultiServerMCPClient": | CODE |
| LOW | libs/chatchat-server/tests/conftest.py | 70 | except Exception: | CODE |
| LOW | …erver/tests/custom_splitter/test_different_splitter.py | 50 | except Exception as e: | CODE |
| MEDIUM | …erver/tests/custom_splitter/test_different_splitter.py | 44 | def test_different_splitter(splitter_name): | CODE |
| LOW | libs/chatchat-server/chatchat/startup.py | 309 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/init_database.py | 60 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 45 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 109 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 264 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 305 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 346 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 394 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 408 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 809 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 834 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/chat/feedback.py | 17 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/chat/kb_chat.py | 220 | except Exception as e: | CODE |
| MEDIUM | libs/chatchat-server/chatchat/server/chat/kb_chat.py | 68 | def knowledge_base_chat_iterator() -> AsyncIterable[str]: | CODE |
| LOW | libs/chatchat-server/chatchat/server/chat/chat.py | 290 | except Exception as e: | CODE |
| MEDIUM | libs/chatchat-server/chatchat/server/chat/chat.py | 148 | def chat_iterator_event() -> AsyncIterable[OpenAIChatOutput]: | CODE |
| LOW | …hat-server/chatchat/server/chat/human_message_event.py | 24 | except Exception as e: | CODE |
| LOW | …hat-server/chatchat/server/chat/human_message_event.py | 37 | except Exception as e: | CODE |
| LOW | …hat-server/chatchat/server/chat/human_message_event.py | 49 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/chat/file_chat.py | 67 | except Exception as e: | CODE |
| LOW | libs/chatchat-server/chatchat/server/chat/file_chat.py | 107 | except Exception as e: | CODE |
| LOW | …erver/chatchat/server/agent/tools_factory/calculate.py | 20 | except Exception as e: | CODE |
| LOW | …atchat-server/chatchat/server/api_server/mcp_routes.py | 73 | except Exception as e: | CODE |
| 71 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/python-sdk/open_chatcaht/utils.py | 82 | CODE | |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 129 | CODE | |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 138 | CODE | |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 183 | CODE | |
| LOW | …ngchain_chatchat/chat_models/platform_tools_message.py | 25 | CODE | |
| LOW | …ngchain_chatchat/chat_models/platform_tools_message.py | 184 | CODE | |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 97 | CODE | |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 136 | CODE | |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 183 | CODE | |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 442 | CODE | |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 463 | CODE | |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 546 | CODE | |
| LOW | …at-server/langchain_chatchat/agents/all_tools_agent.py | 49 | CODE | |
| LOW | …at-server/langchain_chatchat/agents/all_tools_agent.py | 124 | CODE | |
| LOW | …chat/agents/structured_chat/platform_knowledge_bind.py | 20 | CODE | |
| LOW | …chat/agents/structured_chat/platform_knowledge_bind.py | 59 | CODE | |
| LOW | …ts/output_parsers/platform_knowledge_output_parsers.py | 50 | CODE | |
| LOW | …chain_chatchat/agents/output_parsers/platform_tools.py | 30 | CODE | |
| LOW | …chain_chatchat/agents/output_parsers/platform_tools.py | 86 | CODE | |
| LOW | …n_chatchat/agents/output_parsers/tools_output/tools.py | 48 | CODE | |
| LOW | …n_chatchat/agents/output_parsers/tools_output/tools.py | 92 | CODE | |
| LOW | …hatchat/agents/output_parsers/tools_output/function.py | 61 | CODE | |
| LOW | …erver/langchain_chatchat/agents/platform_tools/base.py | 259 | CODE | |
| LOW | …erver/langchain_chatchat/agents/platform_tools/base.py | 263 | CODE | |
| LOW | …ngchain_chatchat/agents/format_scratchpad/all_tools.py | 56 | CODE | |
| LOW | …bs/chatchat-server/langchain_chatchat/utils/history.py | 28 | CODE | |
| LOW | …er/langchain_chatchat/agent_toolkits/mcp_kit/client.py | 291 | CODE | |
| LOW | …ver/langchain_chatchat/agent_toolkits/mcp_kit/tools.py | 29 | CODE | |
| LOW | …er/langchain_chatchat/agent_toolkits/all_tools/tool.py | 132 | CODE | |
| LOW | libs/chatchat-server/tests/conftest.py | 29 | CODE | |
| LOW | …ntegration_tests/platform_tools/test_platform_tools.py | 41 | CODE | |
| LOW | …ntegration_tests/platform_tools/test_platform_tools.py | 76 | CODE | |
| LOW | …ntegration_tests/platform_tools/test_platform_tools.py | 112 | CODE | |
| LOW | …ntegration_tests/platform_tools/test_platform_tools.py | 147 | CODE | |
| LOW | …ntegration_tests/platform_tools/test_platform_tools.py | 182 | CODE | |
| LOW | …ntegration_tests/platform_tools/test_platform_tools.py | 217 | CODE | |
| LOW | …on_tests/mcp_platform_tools/test_mcp_platform_tools.py | 24 | CODE | |
| LOW | …on_tests/mcp_platform_tools/test_mcp_platform_tools.py | 65 | CODE | |
| LOW | …on_tests/mcp_platform_tools/test_mcp_platform_tools.py | 118 | CODE | |
| LOW | libs/chatchat-server/chatchat/startup.py | 208 | CODE | |
| LOW | libs/chatchat-server/chatchat/pydantic_settings_file.py | 103 | CODE | |
| LOW | libs/chatchat-server/chatchat/pydantic_settings_file.py | 122 | CODE | |
| LOW | libs/chatchat-server/chatchat/init_database.py | 26 | CODE | |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 114 | CODE | |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 352 | CODE | |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 735 | CODE | |
| LOW | libs/chatchat-server/chatchat/server/llm_api_stale.py | 195 | CODE | |
| LOW | libs/chatchat-server/chatchat/server/chat/kb_chat.py | 30 | CODE | |
| LOW | libs/chatchat-server/chatchat/server/chat/kb_chat.py | 68 | CODE | |
| LOW | libs/chatchat-server/chatchat/server/chat/chat.py | 134 | CODE | |
| LOW | libs/chatchat-server/chatchat/server/chat/chat.py | 148 | CODE | |
| LOW | …/chatchat/server/agent/tools_factory/tools_registry.py | 43 | CODE | |
| LOW | …hat-server/chatchat/server/api_server/openai_routes.py | 66 | CODE | |
| LOW | …hat-server/chatchat/server/api_server/openai_routes.py | 73 | CODE | |
| LOW | …tchat-server/chatchat/server/api_server/chat_routes.py | 46 | CODE | |
| LOW | …ver/chatchat/server/agents_registry/agents_registry.py | 46 | CODE | |
| LOW | …/server/file_rag/document_loaders/FilteredCSVloader.py | 33 | CODE | |
| LOW | …atchat/server/file_rag/document_loaders/mypdfloader.py | 14 | CODE | |
| LOW | …atchat/server/file_rag/document_loaders/mypdfloader.py | 39 | CODE | |
| LOW | …atchat/server/file_rag/document_loaders/mypptloader.py | 8 | CODE | |
| 31 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/python-sdk/open_chatcaht/utils.py | 193 | def get_function_default_params(func) -> dict: | CODE |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 191 | # def recreate_summary_vector_store(self, | COMMENT |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 212 | # def summary_doc_ids_to_vector_store(self, | COMMENT |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 235 | # def summary_file_to_vector_store(self, knowledge_base_name: str, | COMMENT |
| LOW | libs/python-sdk/tests/装饰器声明请求_test1.py | 62 | def recreate_summary_vector_store(self, a: int, b: int): | CODE |
| LOW⚡ | libs/python-sdk/tests/装饰器声明请求_test.py | 62 | def recreate_summary_vector_store( | CODE |
| LOW⚡ | libs/python-sdk/tests/装饰器声明请求_test.py | 72 | def recreate_summary_vector_store( | CODE |
| LOW | …ngchain_chatchat/chat_models/platform_tools_message.py | 25 | def default_platform_tool_chunk_parser(raw_tool_calls: List[dict]) -> List[ToolCallChunk]: | CODE |
| LOW | …ngchain_chatchat/chat_models/platform_tools_message.py | 84 | def _backwards_compat_tool_calls(cls, values: dict) -> dict: | CODE |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 183 | def _convert_delta_to_message_chunk( | CODE |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 860 | def _gen_info_and_msg_metadata( | CODE |
| LOW | …at-server/langchain_chatchat/agents/all_tools_agent.py | 49 | def validate_return_direct_tool(cls, values: Dict) -> Dict: | CODE |
| LOW | …chat/agents/structured_chat/platform_knowledge_bind.py | 20 | def render_knowledge_mcp_tools(tools: List[MCPStructuredTool]) -> str: | CODE |
| LOW | …chat/agents/structured_chat/platform_knowledge_bind.py | 91 | def create_platform_knowledge_agent( | CODE |
| LOW | …chatchat/agents/structured_chat/platform_tools_bind.py | 17 | def create_platform_tools_agent( | CODE |
| LOW | …chain_chatchat/agents/output_parsers/platform_tools.py | 30 | def parse_ai_message_to_platform_tool_action( | CODE |
| LOW | …agents/output_parsers/tools_output/code_interpreter.py | 36 | def _best_effort_parse_code_interpreter_tool_calls( | CODE |
| LOW | …agents/output_parsers/tools_output/code_interpreter.py | 73 | def _paser_code_interpreter_chunk_input( | CODE |
| LOW | …hat/agents/output_parsers/tools_output/drawing_tool.py | 36 | def _best_effort_parse_drawing_tool_tool_calls( | CODE |
| LOW | …hat/agents/output_parsers/tools_output/drawing_tool.py | 73 | def _paser_drawing_tool_chunk_input( | CODE |
| LOW | …n_chatchat/agents/output_parsers/tools_output/tools.py | 48 | def paser_ai_message_to_tool_calls( | CODE |
| LOW | …n_chatchat/agents/output_parsers/tools_output/tools.py | 92 | def parse_ai_message_to_tool_action( | CODE |
| LOW | …chat/agents/output_parsers/tools_output/web_browser.py | 36 | def _best_effort_parse_web_browser_tool_calls( | CODE |
| LOW | …chat/agents/output_parsers/tools_output/web_browser.py | 73 | def _paser_web_browser_chunk_input( | CODE |
| LOW | …hatchat/agents/output_parsers/tools_output/function.py | 24 | def _best_effort_parse_function_tool_calls( | CODE |
| LOW | …hatchat/agents/output_parsers/tools_output/function.py | 61 | def _paser_function_chunk_input( | CODE |
| LOW | …erver/langchain_chatchat/agents/platform_tools/base.py | 70 | def _is_assistants_builtin_tool( | CODE |
| LOW | …ngchain_chatchat/agents/format_scratchpad/all_tools.py | 56 | def format_to_platform_tool_messages( | CODE |
| LOW | …gchain_chatchat/agents/react/create_prompt_template.py | 47 | def create_prompt_platform_template(model_name: str, template: dict): | CODE |
| LOW | …gchain_chatchat/agents/react/create_prompt_template.py | 85 | def create_prompt_structured_react_template(model_name: str, template: dict): | CODE |
| LOW | …gchain_chatchat/agents/react/create_prompt_template.py | 123 | def create_prompt_gpt_tool_template(model_name: str, template: dict): | CODE |
| LOW | …gchain_chatchat/agents/react/create_prompt_template.py | 162 | def create_prompt_platform_knowledge_mode_template(model_name: str, template: dict): | CODE |
| LOW | …er/langchain_chatchat/agent_toolkits/mcp_kit/client.py | 104 | async def _initialize_session_and_load_tools( | CODE |
| LOW | …er/langchain_chatchat/agent_toolkits/mcp_kit/client.py | 170 | async def connect_to_server_via_stdio( | CODE |
| LOW | …er/langchain_chatchat/agent_toolkits/mcp_kit/client.py | 217 | async def connect_to_server_via_sse( | CODE |
| LOW | …ver/langchain_chatchat/agent_toolkits/mcp_kit/tools.py | 88 | def _convert_call_tool_result( | CODE |
| LOW | …ver/langchain_chatchat/agent_toolkits/mcp_kit/tools.py | 109 | def convert_mcp_tool_to_langchain_tool( | CODE |
| LOW | …r/langchain_chatchat/agent_toolkits/mcp_kit/prompts.py | 11 | def convert_mcp_prompt_message_to_langchain_message( | CODE |
| LOW | libs/chatchat-server/tests/conftest.py | 29 | def pytest_collection_modifyitems(config: Config, items: Sequence[Function]) -> None: | CODE |
| LOW | …s/chatchat-server/tests/unit_tests/test_mcp_prompts.py | 26 | def test_convert_mcp_prompt_message_to_langchain_message_with_text_content( | CODE |
| LOW | …s/chatchat-server/tests/unit_tests/test_mcp_prompts.py | 36 | def test_convert_mcp_prompt_message_to_langchain_message_with_resource_content(role: str): | CODE |
| LOW | …s/chatchat-server/tests/unit_tests/test_mcp_prompts.py | 51 | def test_convert_mcp_prompt_message_to_langchain_message_with_image_content(role: str): | CODE |
| LOW | …ntegration_tests/platform_tools/test_platform_tools.py | 41 | async def test_openai_functions_tools(logging_conf): | CODE |
| LOW | …ntegration_tests/platform_tools/test_platform_tools.py | 147 | async def test_qwen_chat_agent_tools(logging_conf): | CODE |
| LOW | …ntegration_tests/platform_tools/test_platform_tools.py | 182 | async def test_qwen_structured_chat_agent_tools(logging_conf): | CODE |
| LOW | …ntegration_tests/platform_tools/test_platform_tools.py | 217 | async def test_human_platform_tools(logging_conf): | CODE |
| LOW | libs/chatchat-server/tests/api/test_kb_summary_api.py | 22 | def test_summary_file_to_vector_store( | CODE |
| LOW | libs/chatchat-server/tests/api/test_kb_summary_api.py | 37 | def test_summary_doc_ids_to_vector_store( | CODE |
| LOW | libs/chatchat-server/chatchat/pydantic_settings_file.py | 196 | def settings_customise_sources( | CODE |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 936 | def update_search_local_knowledgebase_tool(): | CODE |
| LOW | libs/chatchat-server/chatchat/server/chat/kb_chat.py | 68 | async def knowledge_base_chat_iterator() -> AsyncIterable[str]: | CODE |
| LOW | libs/chatchat-server/chatchat/server/chat/chat.py | 43 | def create_models_from_config(configs, callbacks, stream, max_tokens): | CODE |
| LOW | libs/chatchat-server/chatchat/server/chat/file_chat.py | 154 | async def knowledge_base_chat_iterator() -> AsyncIterable[str]: | CODE |
| LOW | …rver/agent/tools_factory/search_local_knowledgebase.py | 38 | def search_local_knowledgebase( | CODE |
| LOW | …atchat-server/chatchat/server/api_server/mcp_routes.py | 79 | async def create_or_update_mcp_profile(profile_data: MCPProfileCreate): | CODE |
| LOW | …atchat-server/chatchat/server/api_server/mcp_routes.py | 106 | async def update_mcp_profile_endpoint(profile_data: MCPProfileCreate): | CODE |
| LOW | …atchat-server/chatchat/server/api_server/mcp_routes.py | 133 | async def reset_mcp_profile_endpoint(): | CODE |
| LOW | …atchat-server/chatchat/server/api_server/mcp_routes.py | 159 | async def delete_mcp_profile_endpoint(): | CODE |
| LOW | …atchat-server/chatchat/server/api_server/mcp_routes.py | 317 | async def update_mcp_connection_by_id( | CODE |
| LOW | …atchat-server/chatchat/server/api_server/mcp_routes.py | 390 | async def delete_mcp_connection_by_id(connection_id: str): | CODE |
| 22 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …atchat-server/langchain_chatchat/embeddings/zhipuai.py | 0 | holds any model parameters valid for `create` call not explicitly specified. | STRING |
| HIGH | …chatchat-server/langchain_chatchat/chat_models/base.py | 0 | holds any model parameters valid for `create` call not explicitly specified. | STRING |
| HIGH | …/chatchat-server/chatchat/server/localai_embeddings.py | 0 | holds any model parameters valid for `create` call not explicitly specified. | STRING |
| HIGH | …atchat-server/langchain_chatchat/embeddings/zhipuai.py | 0 | build extra kwargs from additional params that were passed in. | STRING |
| HIGH | …chatchat-server/langchain_chatchat/chat_models/base.py | 0 | build extra kwargs from additional params that were passed in. | STRING |
| HIGH | …/chatchat-server/chatchat/server/localai_embeddings.py | 0 | build extra kwargs from additional params that were passed in. | STRING |
| HIGH | …atchat-server/langchain_chatchat/embeddings/zhipuai.py | 0 | validate that api key and python package exists in environment. | STRING |
| HIGH | …chatchat-server/langchain_chatchat/chat_models/base.py | 0 | validate that api key and python package exists in environment. | STRING |
| HIGH | …/chatchat-server/chatchat/server/localai_embeddings.py | 0 | validate that api key and python package exists in environment. | STRING |
| HIGH | …angchain_chatchat/agents/structured_chat/qwen_agent.py | 0 | create an agent that uses tools. args: llm: llm to use as the agent. tools: tools this agent has access to. prompt: the | STRING |
| HIGH | …chatchat/agents/structured_chat/platform_tools_bind.py | 0 | create an agent that uses tools. args: llm: llm to use as the agent. tools: tools this agent has access to. prompt: the | STRING |
| HIGH | …atchat/agents/structured_chat/structured_chat_agent.py | 0 | create an agent that uses tools. args: llm: llm to use as the agent. tools: tools this agent has access to. prompt: the | STRING |
| HIGH | …angchain_chatchat/agents/structured_chat/glm3_agent.py | 0 | create an agent that uses tools. args: llm: llm to use as the agent. tools: tools this agent has access to. prompt: the | STRING |
| HIGH | …er/langchain_chatchat/agent_toolkits/mcp_kit/client.py | 0 | source https://github.com/langchain-ai/langchain-mcp-adapters | STRING |
| HIGH | …ver/langchain_chatchat/agent_toolkits/mcp_kit/tools.py | 0 | source https://github.com/langchain-ai/langchain-mcp-adapters | STRING |
| HIGH | …r/langchain_chatchat/agent_toolkits/mcp_kit/prompts.py | 0 | source https://github.com/langchain-ai/langchain-mcp-adapters | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ngchain_chatchat/chat_models/platform_tools_message.py | 101 | except Exception as e: | CODE |
| HIGH | libs/chatchat-server/chatchat/startup.py | 16 | except: | CODE |
| HIGH | libs/chatchat-server/chatchat/server/chat/chat.py | 225 | except: | CODE |
| HIGH | libs/chatchat-server/chatchat/server/chat/chat.py | 257 | except: | CODE |
| HIGH | …hat-server/chatchat/server/api_server/openai_routes.py | 324 | except: | CODE |
| HIGH | …t/server/knowledge_base/kb_service/faiss_kb_service.py | 63 | except Exception: | CODE |
| HIGH | …t/server/knowledge_base/kb_service/faiss_kb_service.py | 116 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker/docker-compose.yaml | 21 | count: all | COMMENT |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 61 | ... | COMMENT |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 201 | # knowledge_base_name=knowledge_base_name, | COMMENT |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 221 | # ): | COMMENT |
| LOW | …n_chatcaht/api/knowledge_base/knowledge_base_client.py | 241 | # model_name: str = LLM_MODEL, | COMMENT |
| LOW | libs/python-sdk/tests/chat_test.py | 1 | from open_chatcaht.chatchat_api import ChatChat | COMMENT |
| LOW | libs/python-sdk/tests/kb_test.py | 1 | import logging | COMMENT |
| LOW | libs/python-sdk/tests/kb_test.py | 21 | # print('recreate_summary_vector_store', chatchat.knowledge.recreate_summary_vector_store( | COMMENT |
| LOW | libs/python-sdk/tests/kb_test.py | 41 | # print(chatchat.knowledge.download_kb_doc_file( | COMMENT |
| LOW | libs/chatchat-server/pyproject.toml | 221 | [tool.pytest.ini_options] | COMMENT |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 641 | # def list_embed_models() -> List[str]: | COMMENT |
| LOW | libs/chatchat-server/chatchat/server/utils.py | 661 | # root_path = Path(MODEL_ROOT_PATH) | COMMENT |
| LOW | …s/chatchat-server/chatchat/server/reranker/reranker.py | 101 | for value, index in zip(values, indices): | COMMENT |
| LOW | …s/chatchat-server/chatchat/server/reranker/reranker.py | 121 | # reranker_model_path = MODEL_PATH["reranker"].get( | COMMENT |
| LOW | libs/chatchat-server/chatchat/server/chat/kb_chat.py | 141 | COMMENT | |
| LOW | …chat-server/chatchat/server/knowledge_base/__init__.py | 1 | # from .kb_api import list_kbs, create_kb, delete_kb | COMMENT |
| LOW | …chat/server/knowledge_base/kb_service/pg_kb_service.py | 121 | # pGKBService.add_doc(KnowledgeFile("README.md", "test")) | COMMENT |
| LOW | …chatchat/server/knowledge_base/kb_cache/faiss_cache.py | 181 | # # for name in kb_names: | COMMENT |
| LOW | …chatchat/server/knowledge_base/kb_cache/faiss_cache.py | 201 | # threads = [] | COMMENT |
| LOW | libs/chatchat-server/chatchat/webui_pages/utils.py | 961 | COMMENT | |
| LOW | …tchat-server/chatchat/webui_pages/dialogue/dialogue.py | 321 | # reason = feedback["text"] | COMMENT |
| LOW | …tchat-server/chatchat/webui_pages/dialogue/dialogue.py | 521 | else: | COMMENT |
| LOW | …tchat-server/chatchat/webui_pages/dialogue/dialogue.py | 541 | # elif dialogue_mode == "文件对话": | COMMENT |
| LOW | .github/workflows/_release.yml | 41 | cache-key: release | COMMENT |
| LOW | .github/workflows/_release.yml | 81 | pre-release-checks: | COMMENT |
| LOW | .github/workflows/_release.yml | 201 | - name: Publish package distributions to PyPI | COMMENT |
| LOW | .github/workflows/_release.yml | 221 | # runs-on: ubuntu-latest | COMMENT |
| LOW | .github/workflows/_release.yml | 241 | # cache-key: release | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/python-sdk/open_chatcaht/exceptions.py | 9 | __all__ = [ | CODE |
| LOW | libs/chatchat-server/langchain_chatchat/__init__.py | 6 | __all__ = [ | CODE |
| LOW | …tchat-server/langchain_chatchat/embeddings/__init__.py | 2 | __all__ = [ | CODE |
| LOW | …atchat-server/langchain_chatchat/embeddings/zhipuai.py | 36 | logger = logging.getLogger(__name__) | CODE |
| LOW | …atchat-server/langchain_chatchat/callbacks/__init__.py | 14 | __all__ = [ | CODE |
| LOW | …chat-server/langchain_chatchat/chat_models/__init__.py | 4 | __all__ = [ | CODE |
| LOW | …chatchat-server/langchain_chatchat/chat_models/base.py | 94 | logger = logging.getLogger(__name__) | CODE |
| LOW | …at-server/langchain_chatchat/agents/all_tools_agent.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/chatchat-server/langchain_chatchat/agents/__init__.py | 4 | __all__ = ["PlatformToolsRunnable"] | CODE |
| LOW | …r/langchain_chatchat/agents/output_parsers/__init__.py | 23 | __all__ = [ | CODE |
| LOW | …agents/output_parsers/tools_output/code_interpreter.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | …hat/agents/output_parsers/tools_output/drawing_tool.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | …n_chatchat/agents/output_parsers/tools_output/tools.py | 45 | logger = logging.getLogger(__name__) | CODE |
| LOW | …chat/agents/output_parsers/tools_output/web_browser.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | …hatchat/agents/output_parsers/tools_output/function.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | …r/langchain_chatchat/agents/platform_tools/__init__.py | 15 | __all__ = [ | CODE |
| LOW | …s/chatchat-server/langchain_chatchat/utils/__init__.py | 6 | __all__ = ["History", "PYDANTIC_V2"] | CODE |
| LOW | …t-server/langchain_chatchat/agent_toolkits/__init__.py | 4 | __all__ = ["BaseToolOutput", "AdapterAllTool"] | CODE |
| LOW | …hain_chatchat/agent_toolkits/all_tools/drawing_tool.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | …_chatchat/agent_toolkits/all_tools/web_browser_tool.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | …angchain_chatchat/agent_toolkits/all_tools/__init__.py | 7 | __all__ = ["BaseToolOutput", "AdapterAllTool"] | CODE |
| LOW | …chat/agent_toolkits/all_tools/code_interpreter_tool.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | …er/langchain_chatchat/agent_toolkits/all_tools/tool.py | 41 | logger = logging.getLogger(__name__) | CODE |
| LOW | libs/chatchat-server/chatchat/pydantic_settings_file.py | 16 | __all__ = ["YamlTemplate", "MyBaseModel", "BaseFileSettings", "Field", | CODE |
| LOW | libs/chatchat-server/chatchat/utils.py | 51 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/chatchat-server/chatchat/server/localai_embeddings.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/chatchat/server/agent/tools_factory/tools_registry.py | 13 | __all__ = ["regist_tool", "BaseToolOutput", "format_context"] | CODE |
| LOW | …s/chatchat-server/chatchat/webui_pages/mcp/__init__.py | 7 | __all__ = ["mcp_management_page"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/python-sdk/open_chatcaht/chatchat_api.py | 18 | CODE | |
| LOW | libs/python-sdk/open_chatcaht/api_client.py | 31 | CODE | |
| LOW | libs/python-sdk/open_chatcaht/api/chat/chat_client.py | 31 | CODE | |
| LOW | libs/python-sdk/open_chatcaht/api/chat/chat_client.py | 62 | CODE | |
| LOW | libs/chatchat-server/chatchat/server/chat/kb_chat.py | 30 | CODE | |
| LOW | libs/chatchat-server/chatchat/server/chat/chat.py | 134 | CODE | |
| LOW | libs/chatchat-server/chatchat/server/chat/file_chat.py | 113 | CODE | |
| LOW | …hatchat-server/chatchat/server/api_server/kb_routes.py | 66 | CODE | |
| LOW | …tchat-server/chatchat/server/api_server/chat_routes.py | 125 | CODE | |
| LOW | …chat/server/db/repository/mcp_connection_repository.py | 9 | CODE | |
| LOW | …chat/server/db/repository/mcp_connection_repository.py | 53 | CODE | |
| LOW | …at-server/chatchat/server/knowledge_base/kb_doc_api.py | 159 | CODE | |
| LOW | …at-server/chatchat/server/knowledge_base/kb_doc_api.py | 272 | CODE | |
| LOW | …at-server/chatchat/server/knowledge_base/kb_doc_api.py | 400 | CODE | |
| LOW | …erver/chatchat/server/knowledge_base/kb_summary_api.py | 20 | CODE | |
| LOW | …erver/chatchat/server/knowledge_base/kb_summary_api.py | 119 | CODE | |
| LOW | …erver/chatchat/server/knowledge_base/kb_summary_api.py | 203 | CODE | |
| LOW | libs/chatchat-server/chatchat/webui_pages/utils.py | 363 | CODE | |
| LOW | libs/chatchat-server/chatchat/webui_pages/utils.py | 766 | CODE | |
| LOW | libs/chatchat-server/chatchat/webui_pages/utils.py | 817 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …chatchat-server/langchain_chatchat/chat_models/base.py | 248 | api_key="your-api-key", | STRING |
| HIGH | markdown_docs/server/utils.md | 41 | ChatOpenAI(streaming=True, verbose=True, callbacks=[], openai_api_key="YOUR_API_KEY", openai_api_base="https://api.examp | CODE |
| HIGH | markdown_docs/server/utils.md | 72 | openai_api_key="YOUR_API_KEY", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libs/python-sdk/tests/装饰器声明请求_test1.py | 46 | # Define a function that applies the decorator | COMMENT |
| MEDIUM | …angchain_chatchat/agents/structured_chat/qwen_agent.py | 21 | # Create a tools variable from the list of tools provided | COMMENT |
| MEDIUM | libs/chatchat-server/chatchat/server/utils.py | 603 | # Define the doc and redoc pages, pointing at the right files | COMMENT |
| MEDIUM | libs/chatchat-server/scripts/lint_imports.sh | 5 | # Initialize a variable to keep track of errors | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/chatchat-server/tests/conftest.py | 62 | # Iterate through the list of required packages | COMMENT |
| LOW | …server/chatchat/server/agent/tools_factory/text2sql.py | 42 | # Check if the statement starts with any of the write operation keywords | STRING |
| LOW | libs/chatchat-server/scripts/check_pydantic.sh | 8 | # Check if a path argument is provided | COMMENT |
| LOW | libs/chatchat-server/scripts/check_pydantic.sh | 19 | # Check if any matching lines were found | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | libs/python-sdk/tests/装饰器声明请求_test.py | 54 | # Usage example | COMMENT |
| LOW⚡ | libs/python-sdk/tests/装饰器声明请求_test.py | 79 | # Example usage | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | markdown_docs/server/db/models/knowledge_file_model.md | 92 | **输出示例**: 假设有一个 `FileDocModel` 对象,其属性如下:`id=1`,`kb_name='KnowledgeBase1'`,`file_name='document1.pdf'`,`doc_id='12345'`,` | CODE |
| LOW | markdown_docs/server/db/models/knowledge_file_model.md | 95 | <FileDoc(id='1', kb_name='KnowledgeBase1', file_name='document1.pdf', doc_id='12345', metadata='{"author": "John Doe", " | CODE |
| LOW | …down_docs/server/db/models/knowledge_metadata_model.md | 36 | **输出示例**: 假设有一个`SummaryChunkModel`实例,其`id`为`123`,`kb_name`为`"KnowledgeBase1"`,`summary_context`为`"Context1"`,`doc_ids`为` | CODE |
| LOW | …down_docs/server/db/models/knowledge_metadata_model.md | 39 | <SummaryChunk(id='123', kb_name='KnowledgeBase1', summary_context='Context1', doc_ids='doc1, doc2', metadata='{'author': | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …er/langchain_chatchat/agent_toolkits/mcp_kit/client.py | 89 | # make sure you start your weather server on port 8000 | STRING |
| MEDIUM | …hatchat-server/chatchat/server/knowledge_base/utils.py | 306 | # If you use SpacyTextSplitter you can use GPU to do split likes Issue #1287 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/contributing/api.md | 204 | ### RAG 接口 (/knowledge_base/chat/compleitons) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rver/chatchat/server/knowledge_base/kb_service/base.py | 425 | if _ is None: # kb not in db, just return None | CODE |