Open Source DeepWiki: AI-Powered Wiki Generator for GitHub/Gitlab/Bitbucket Repositories. Join the discord: https://discord.gg/gMwThUMeme
334 matches across 13 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/test_extract_repo_name.py | 90 | except Exception as e: |
| LOW | tests/run_tests.py | 37 | except Exception as e: |
| LOW | tests/unit/test_all_embedders.py | 281 | except Exception as e: |
| LOW | tests/unit/test_all_embedders.py | 291 | except Exception as e: |
| LOW | tests/unit/test_all_embedders.py | 308 | except Exception as e: |
| LOW | tests/unit/test_all_embedders.py | 320 | except Exception as e: |
| LOW | tests/unit/test_all_embedders.py | 45 | except Exception as e: |
| LOW | tests/unit/test_all_embedders.py | 173 | except Exception as e: |
| LOW | tests/unit/test_all_embedders.py | 188 | except Exception as e: |
| LOW | tests/unit/test_all_embedders.py | 389 | except Exception as e: |
| LOW | tests/unit/test_all_embedders.py | 413 | except Exception as e: |
| LOW | tests/unit/test_google_embedder.py | 70 | except Exception as e: |
| LOW | tests/unit/test_google_embedder.py | 105 | except Exception as e: |
| LOW | tests/unit/test_google_embedder.py | 152 | except Exception as e: |
| LOW | tests/integration/test_full_integration.py | 38 | except Exception as e: |
| LOW | tests/integration/test_full_integration.py | 67 | except Exception as e: |
| LOW | tests/integration/test_full_integration.py | 103 | except Exception as e: |
| LOW | tests/integration/test_full_integration.py | 137 | except Exception as e: |
| MEDIUM | tests/api/test_api.py | 42 | print(f"Error: {response.status_code}") |
| MEDIUM | tests/api/test_api.py | 45 | print(f"Error details: {error_data.get('detail', 'Unknown error')}") |
| MEDIUM | tests/api/test_api.py | 47 | print(f"Error content: {response.content}") |
| LOW | tests/api/test_api.py | 57 | except Exception as e: |
| MEDIUM | tests/api/test_api.py | 58 | print(f"Error: {str(e)}") |
| LOW | api/bedrock_client.py | 149 | except Exception as e: |
| LOW | api/bedrock_client.py | 295 | except Exception as e: |
| LOW | api/bedrock_client.py | 364 | except Exception as e: |
| LOW | api/dashscope_client.py | 86 | except Exception as e: |
| LOW | api/dashscope_client.py | 226 | except Exception as e: |
| LOW | api/dashscope_client.py | 267 | except Exception as e: |
| LOW | api/dashscope_client.py | 300 | except Exception as e: |
| LOW | api/dashscope_client.py | 481 | except Exception as e: |
| LOW | api/dashscope_client.py | 524 | except Exception as e: |
| LOW | api/dashscope_client.py | 607 | except Exception as e: |
| LOW | api/dashscope_client.py | 770 | except Exception as e: |
| LOW | api/dashscope_client.py | 803 | except Exception as e: |
| LOW | api/dashscope_client.py | 822 | except Exception as e: |
| LOW | api/dashscope_client.py | 702 | except Exception as e: |
| LOW | api/dashscope_client.py | 724 | except Exception as e: |
| LOW | api/config.py | 119 | except Exception as e: |
| MEDIUM | api/config.py | 100 | def load_json_config(filename): |
| LOW | api/data_pipeline.py | 66 | except Exception as e: |
| LOW | api/data_pipeline.py | 155 | except Exception as e: |
| LOW | api/data_pipeline.py | 350 | except Exception as e: |
| LOW | api/data_pipeline.py | 384 | except Exception as e: |
| LOW | api/data_pipeline.py | 534 | except Exception as e: |
| LOW | api/data_pipeline.py | 588 | except Exception as e: |
| LOW | api/data_pipeline.py | 616 | except Exception as e: |
| LOW | api/data_pipeline.py | 659 | except Exception as e: |
| LOW | api/data_pipeline.py | 691 | except Exception as e: |
| LOW | api/data_pipeline.py | 835 | except Exception as e: |
| LOW | api/data_pipeline.py | 869 | except Exception: |
| LOW | api/data_pipeline.py | 901 | except Exception as e: |
| LOW | api/openrouter_client.py | 341 | except Exception as e: |
| LOW | api/openrouter_client.py | 452 | except Exception as e_chunk: |
| LOW | api/openrouter_client.py | 455 | except Exception as e_stream: |
| LOW | api/openrouter_client.py | 222 | except Exception as xml_parse_error: |
| LOW | api/openrouter_client.py | 299 | except Exception as rebuild_error: |
| LOW | api/openrouter_client.py | 309 | except Exception as xml_error: |
| LOW | api/openrouter_client.py | 391 | except Exception as e_proc: |
| LOW | api/openrouter_client.py | 520 | except Exception as e_chunk: |
| 70 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/integration/test_full_integration.py | 20 | # Check if Google embedder config exists |
| LOW | tests/integration/test_full_integration.py | 29 | # Check if GoogleEmbedderClient is in CLIENT_CLASSES |
| LOW | tests/api/test_api.py | 40 | # Check if the request was successful |
| LOW | api/bedrock_client.py | 308 | # Check if client is initialized |
| LOW | api/dashscope_client.py | 207 | # Check if it's a ChatCompletion object (non-streaming response) |
| LOW | api/config.py | 191 | # Check if model_client is OllamaClient |
| LOW | api/config.py | 211 | # Check if model_client is GoogleEmbedderClient |
| LOW | api/data_pipeline.py | 86 | # Check if Git is installed |
| LOW | api/data_pipeline.py | 95 | # Check if repository already exists |
| LOW | api/data_pipeline.py | 266 | # Check if file is in an included directory |
| LOW | api/data_pipeline.py | 274 | # Check if file matches included file patterns |
| LOW | api/data_pipeline.py | 296 | # Check if file is in an excluded directory |
| LOW | api/data_pipeline.py | 303 | # Check if file matches excluded file patterns |
| LOW | api/data_pipeline.py | 316 | # Check if file should be processed based on inclusion/exclusion rules |
| LOW | api/data_pipeline.py | 357 | # Check if file should be processed based on inclusion/exclusion rules |
| LOW | api/data_pipeline.py | 483 | # Check if it's a GitHub-like URL structure |
| LOW | api/data_pipeline.py | 518 | # Check if we got an error response |
| LOW | api/data_pipeline.py | 814 | # Check if the repository directory already exists and is not empty |
| LOW | api/openrouter_client.py | 176 | # Check if the content is XML and ensure it's properly formatted |
| LOW | api/openrouter_client.py | 183 | # Check if it's a wiki_structure XML |
| LOW | api/openrouter_client.py | 117 | # Check if API key is set |
| LOW | api/simple_chat.py | 313 | # Check if filePath is provided and fetch file content if it exists |
| LOW | api/simple_chat.py | 80 | # Check if request contains very large input |
| LOW | api/simple_chat.py | 151 | # Check if this is a Deep Research request |
| LOW | api/simple_chat.py | 169 | # Check if this is a continuation request |
| LOW | api/simple_chat.py | 254 | # Check if this is the first iteration |
| LOW | api/simple_chat.py | 257 | # Check if this is the final iteration |
| LOW | api/simple_chat.py | 354 | # Check if OpenRouter API key is set |
| LOW | api/simple_chat.py | 377 | # Check if an API key is set for Openai |
| LOW | api/simple_chat.py | 401 | # Check if AWS credentials are set |
| LOW | api/rag.py | 63 | # Check if dialog_turns exists and is a list |
| LOW | api/rag.py | 178 | # Check if Ollama model exists before proceeding |
| LOW | api/websocket_wiki.py | 423 | # Check if filePath is provided and fetch file content if it exists |
| LOW | api/websocket_wiki.py | 75 | # Check if request contains very large input |
| LOW | api/websocket_wiki.py | 156 | # Check if this is a Deep Research request |
| LOW | api/websocket_wiki.py | 174 | # Check if this is a continuation request |
| LOW | api/websocket_wiki.py | 259 | # Check if this is the first iteration |
| LOW | api/websocket_wiki.py | 262 | # Check if this is the final iteration |
| LOW | api/websocket_wiki.py | 464 | # Check if OpenRouter API key is set |
| LOW | api/websocket_wiki.py | 487 | # Check if an API key is set for Openai |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/test_extract_repo_name.py | 28 | def test_extract_repo_name_github_standard_url(self): |
| LOW | test/test_extract_repo_name.py | 47 | def test_extract_repo_name_gitlab_urls(self): |
| LOW | test/test_extract_repo_name.py | 62 | def test_extract_repo_name_bitbucket_urls(self): |
| LOW | test/test_extract_repo_name.py | 70 | def test_extract_repo_name_local_paths(self): |
| LOW | test/test_extract_repo_name.py | 80 | def test_extract_repo_name_current_implementation_bug(self): |
| LOW | test/test_extract_repo_name.py | 105 | def test_extract_repo_name_edge_cases(self): |
| LOW | tests/unit/test_all_embedders.py | 272 | def test_prepare_data_pipeline(self, is_ollama=None): |
| LOW | tests/unit/test_all_embedders.py | 311 | def test_rag_embedder_type_detection(self): |
| LOW | tests/unit/test_all_embedders.py | 327 | def test_embedder_type_env_var(self, embedder_type=None): |
| LOW | tests/unit/test_all_embedders.py | 103 | def test_embedder_type_detection(self): |
| LOW | tests/unit/test_all_embedders.py | 149 | def test_get_embedder_with_explicit_type(self): |
| LOW | tests/unit/test_all_embedders.py | 176 | def test_get_embedder_with_legacy_params(self): |
| LOW | tests/unit/test_all_embedders.py | 191 | def test_get_embedder_auto_detection(self): |
| LOW | tests/unit/test_all_embedders.py | 203 | def test_google_embedder_client(self): |
| LOW | tests/unit/test_all_embedders.py | 230 | def test_openai_embedder_via_adalflow(self): |
| LOW | tests/unit/test_all_embedders.py | 340 | def _test_single_embedder_type(self, embedder_type): |
| LOW | tests/unit/test_all_embedders.py | 374 | def test_binary_assumptions_in_rag(self): |
| LOW | tests/unit/test_all_embedders.py | 392 | def test_binary_assumptions_in_data_pipeline(self): |
| LOW | tests/unit/test_google_embedder.py | 23 | def test_google_embedder_client(): |
| LOW | tests/integration/test_full_integration.py | 73 | def test_google_embedder_with_env(): |
| LOW | api/bedrock_client.py | 183 | def _format_prompt_for_provider(self, provider: str, prompt: str, messages=None) -> Dict[str, Any]: |
| LOW | api/bedrock_client.py | 442 | def convert_inputs_to_api_kwargs( |
| LOW | api/dashscope_client.py | 68 | def get_first_message_content(completion: ChatCompletion) -> str: |
| LOW | api/dashscope_client.py | 96 | def handle_streaming_response(generator: Stream[ChatCompletionChunk]): |
| LOW | api/dashscope_client.py | 305 | def convert_inputs_to_api_kwargs( |
| LOW | api/data_pipeline.py | 434 | def transform_documents_and_save_to_db( |
| LOW | api/data_pipeline.py | 619 | def get_bitbucket_file_content(repo_url: str, file_path: str, access_token: str = None) -> str: |
| LOW | api/data_pipeline.py | 770 | def _extract_repo_name_from_url(self, repo_url_or_path: str, repo_type: str) -> str: |
| LOW | api/openrouter_client.py | 346 | async def unexpected_error_generator(): |
| LOW | api/openrouter_client.py | 355 | async def model_type_error_generator(): |
| LOW | api/openrouter_client.py | 359 | def _process_completion_response(self, data: Dict) -> GeneratorOutput: |
| LOW | api/openrouter_client.py | 459 | async def _process_async_streaming_response(self, response): |
| LOW | api/openrouter_client.py | 71 | def convert_inputs_to_api_kwargs( |
| LOW | api/openrouter_client.py | 328 | async def connection_error_generator(): |
| LOW | api/openrouter_client.py | 395 | def _process_streaming_response(self, response): |
| LOW | api/ollama_patch.py | 21 | def check_ollama_model_exists(model_name: str, ollama_host: str = None) -> bool: |
| LOW | api/api.py | 36 | def get_adalflow_default_root_path(): |
| LOW | api/azureai_client.py | 75 | def get_first_message_content(completion: ChatCompletion) -> str: |
| LOW | api/azureai_client.py | 81 | # def _get_chat_completion_usage(completion: ChatCompletion) -> OpenAICompletionUsage: |
| LOW | api/azureai_client.py | 90 | def handle_streaming_response(generator: Stream[ChatCompletionChunk]): |
| LOW | api/azureai_client.py | 348 | def convert_inputs_to_api_kwargs( |
| LOW | api/rag.py | 251 | def _validate_and_filter_embeddings(self, documents: List) -> List: |
| LOW | api/openai_client.py | 58 | def get_first_message_content(completion: ChatCompletion) -> str: |
| LOW | api/openai_client.py | 65 | # def _get_chat_completion_usage(completion: ChatCompletion) -> OpenAICompletionUsage: |
| LOW | api/openai_client.py | 92 | def handle_streaming_response(generator: Stream[ChatCompletionChunk]): |
| LOW | api/openai_client.py | 270 | def convert_inputs_to_api_kwargs( |
| LOW | api/openai_client.py | 384 | def parse_image_generation_response(self, response: List[Image]) -> GeneratorOutput: |
| LOW | api/google_embedder_client.py | 161 | def convert_inputs_to_api_kwargs( |
| LOW | src/app/api/wiki/projects/route.ts | 22 | function isDeleteProjectCachePayload(obj: unknown): obj is DeleteProjectCachePayload { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/api/test_api.py | 14 | # Define the API endpoint |
| MEDIUM | tests/api/test_api.py | 17 | # Define the request payload |
| MEDIUM | api/bedrock_client.py | 116 | # Create a session with the provided credentials |
| MEDIUM | api/bedrock_client.py | 133 | # Create a new session with the assumed role credentials |
| MEDIUM | api/bedrock_client.py | 141 | # Create the Bedrock client |
| MEDIUM | api/openrouter_client.py | 168 | # Create a generator that yields the content |
| MEDIUM | api/simple_chat.py | 307 | # Create the prompt with context |
| MEDIUM | api/simple_chat.py | 91 | # Create a new RAG instance for this request |
| MEDIUM | api/simple_chat.py | 463 | # Create a streaming response |
| MEDIUM | api/simple_chat.py | 568 | # Create a simplified prompt without context |
| MEDIUM | api/api.py | 380 | # Create a dictionary with metadata and pages |
| MEDIUM | api/rag.py | 103 | # Create a new dialog turn using our custom implementation |
| MEDIUM | api/websocket_wiki.py | 417 | # Create the prompt with context |
| MEDIUM | api/websocket_wiki.py | 86 | # Create a new RAG instance for this request |
| MEDIUM | api/websocket_wiki.py | 724 | # Create a simplified prompt without context |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | api/bedrock_client.py | 183 | |
| LOW | api/bedrock_client.py | 250 | |
| LOW | api/bedrock_client.py | 304 | |
| LOW | api/bedrock_client.py | 442 | |
| LOW | api/dashscope_client.py | 197 | |
| LOW | api/dashscope_client.py | 305 | |
| LOW | api/dashscope_client.py | 391 | |
| LOW | api/dashscope_client.py | 498 | |
| LOW | api/dashscope_client.py | 748 | |
| LOW | api/dashscope_client.py | 844 | |
| LOW | api/config.py | 124 | |
| LOW | api/data_pipeline.py | 27 | |
| LOW | api/data_pipeline.py | 72 | |
| LOW | api/data_pipeline.py | 161 | |
| LOW | api/data_pipeline.py | 537 | |
| LOW | api/data_pipeline.py | 619 | |
| LOW | api/data_pipeline.py | 243 | |
| LOW | api/data_pipeline.py | 839 | |
| LOW | api/openrouter_client.py | 112 | |
| LOW | api/openrouter_client.py | 395 | |
| LOW | api/openrouter_client.py | 459 | |
| LOW | api/openrouter_client.py | 169 | |
| LOW | api/simple_chat.py | 77 | |
| LOW | api/simple_chat.py | 464 | |
| LOW | api/ollama_patch.py | 71 | |
| LOW | api/api.py | 276 | |
| LOW | api/api.py | 322 | |
| LOW | api/api.py | 578 | |
| LOW | api/azureai_client.py | 348 | |
| LOW | api/rag.py | 59 | |
| LOW | api/rag.py | 251 | |
| LOW | api/rag.py | 345 | |
| LOW | api/openai_client.py | 270 | |
| LOW | api/openai_client.py | 411 | |
| LOW | api/openai_client.py | 488 | |
| LOW | api/google_embedder_client.py | 78 | |
| LOW | api/google_embedder_client.py | 92 | |
| LOW | api/websocket_wiki.py | 63 | |
| LOW | api/tools/embedder.py | 6 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/test_extract_repo_name.py | 9 | |
| LOW | test/test_extract_repo_name.py | 12 | |
| LOW | test/test_extract_repo_name.py | 12 | |
| LOW | tests/run_tests.py | 111 | |
| LOW | tests/run_tests.py | 117 | |
| LOW | tests/run_tests.py | 123 | |
| LOW | tests/unit/test_google_embedder.py | 6 | |
| LOW | api/bedrock_client.py | 3 | |
| LOW | api/bedrock_client.py | 9 | |
| LOW | api/bedrock_client.py | 9 | |
| LOW | api/bedrock_client.py | 9 | |
| LOW | api/bedrock_client.py | 12 | |
| LOW | api/dashscope_client.py | 5 | |
| LOW | api/openrouter_client.py | 3 | |
| LOW | api/openrouter_client.py | 3 | |
| LOW | api/openrouter_client.py | 3 | |
| LOW | api/openrouter_client.py | 7 | |
| LOW | api/openrouter_client.py | 8 | |
| LOW | api/simple_chat.py | 2 | |
| LOW | api/ollama_patch.py | 1 | |
| LOW | api/api.py | 3 | |
| LOW | api/api.py | 3 | |
| LOW | api/api.py | 6 | |
| LOW | api/api.py | 10 | |
| LOW | api/rag.py | 3 | |
| LOW | api/rag.py | 5 | |
| LOW | api/main.py | 67 | |
| LOW | api/google_embedder_client.py | 6 | |
| LOW | api/google_embedder_client.py | 13 | |
| LOW | api/google_embedder_client.py | 13 | |
| LOW | api/websocket_wiki.py | 2 | |
| LOW | api/websocket_wiki.py | 3 | |
| LOW | api/websocket_wiki.py | 3 | |
| LOW | api/websocket_wiki.py | 9 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | api/data_pipeline.py | 461 | Retrieves the content of a file from a GitHub repository using the GitHub API. Supports both public GitHub (git |
| HIGH | api/data_pipeline.py | 538 | Retrieves the content of a file from a GitLab repository (cloud or self-hosted). Args: repo_url (str): |
| HIGH | api/data_pipeline.py | 696 | Retrieves the content of a file from a Git repository (GitHub or GitLab). Args: repo_type (str): Type |
| HIGH | api/openai_client.py | 539 | Encode image to base64 string. Args: image_path: Path to image file. Returns: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | litellm-config.yml | 2 | # ----------------------- |
| MEDIUM | litellm-config.yml | 4 | # ----------------------- |
| MEDIUM | litellm-config.yml | 11 | # ----------------------- |
| MEDIUM | litellm-config.yml | 13 | # ----------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | README.zh-tw.md | 258 | OPENAI_API_KEY=your_api_key |
| HIGH | api/azureai_client.py | 144 | export AZURE_OPENAI_API_KEY="your_api_key" |
| HIGH | api/azureai_client.py | 161 | api_key="your_api_key", |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | package-lock.json | 8459 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", |
| LOW | api/bedrock_client.py | 160 | # For now, just return the sync client |
| LOW | api/bedrock_client.py | 438 | # For now, just call the sync method |
| MEDIUM | src/components/Ask.tsx | 386 | const completionNote = "\n\n## Final Conclusion\nAfter multiple iterations of deep research, we've gathered |
| MEDIUM | src/components/Ask.tsx | 466 | const completionNote = "\n\n## Final Conclusion\nAfter multiple iterations of deep research, we've gathered sign |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/__init__.py | 1 | # Tests for DeepWiki |
| LOW | tests/unit/__init__.py | 1 | # Unit tests |
| LOW | tests/integration/__init__.py | 1 | # Integration tests |
| LOW | tests/api/__init__.py | 1 | # API tests |
| LOW | api/azureai_client.py | 481 | # model_client=OpenAIClient(), |
| LOW | api/openai_client.py | 201 | raise ValueError( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/app/[owner]/[repo]/page.tsx | 1331 | // Step 1: Get project info to determine default branch |
| LOW | src/app/[owner]/[repo]/page.tsx | 1353 | // Step 2: Paginate to fetch full file tree |
| LOW | src/app/[owner]/[repo]/page.tsx | 1378 | // Step 3: Format file paths |
| LOW | src/app/[owner]/[repo]/page.tsx | 1384 | // Step 4: Try to fetch README.md content |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | api/openai_client.py | 590 | # Example usage: |