ChatGPT官网接口纯协议的逆向实现,支持GPT-Image-2模型、文本模型,兼容OpenAI接口协议,在线批量生图/编辑图,号池管理,支持可编辑PPT/PSD文件逆向,支持导入CPA、sub2api号池 、支持接入Cherry Studio、New Api 等软件
This report summarizes scanner evidence for basketikun/chatgpt2api, a Python project with 6,575 GitHub stars. SynthScan examined 42,653 lines of code across 186 source files, recording 654 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 17.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.
Can maintainers explain intent, assumptions, and trade-offs? 390 finding(s).
Are imports declared and package/API names verified? 74 finding(s).
Are wrappers, guards, and repeated structures necessary? 521 finding(s).
Which changes need focused human review? 654 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
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 654 distinct pattern matches across 11 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 | test/test_model_catalog_service.py | 85 | def test_catalog_unions_anonymous_and_each_active_account_type(self) -> None: | CODE |
| LOW⚡ | test/test_model_catalog_service.py | 104 | def test_catalog_is_cached_until_ttl_expires(self) -> None: | CODE |
| LOW⚡ | test/test_model_catalog_service.py | 112 | def test_concurrent_readers_share_one_catalog_refresh(self) -> None: | CODE |
| LOW⚡ | test/test_model_catalog_service.py | 122 | def test_failed_refresh_keeps_last_successful_models_for_that_type(self) -> None: | CODE |
| LOW | test/test_model_catalog_service.py | 136 | def test_removed_account_type_drops_its_stale_capabilities(self) -> None: | CODE |
| LOW | test/test_image_storage_service.py | 72 | def test_local_mode_saves_to_local_directory(self): | CODE |
| LOW | test/test_image_storage_service.py | 79 | def test_webdav_mode_uploads_without_local_file(self): | CODE |
| LOW | test/test_image_storage_service.py | 95 | def test_list_items_ignores_non_image_files(self): | CODE |
| LOW | test/test_image_storage_service.py | 108 | def test_both_mode_saves_to_local_and_webdav(self): | CODE |
| LOW | test/test_image_storage_service.py | 124 | def test_test_webdav_writes_and_deletes_probe_file(self): | CODE |
| LOW | test/test_image_tasks_api.py | 72 | def test_create_generation_task(self): | CODE |
| LOW | test/test_image_tasks_api.py | 85 | def test_create_edit_task_accepts_multiple_images(self): | CODE |
| LOW | test/test_image_tasks_api.py | 103 | def test_create_edit_task_accepts_image_url(self): | CODE |
| LOW | test/test_image_tasks_api.py | 121 | def test_list_tasks_reports_missing_ids(self): | CODE |
| LOW | test/test_account_image_capabilities.py | 20 | def test_image_accounts_require_positive_quota(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 33 | def test_prolite_variants_are_normalized(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 39 | def test_search_account_type_ignores_unrelated_scalar_values(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 53 | def test_mark_image_result_consumes_quota(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 71 | def test_split_image_model_supports_plan_type_prefix(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 79 | def test_get_available_access_token_filters_by_plan_type(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 99 | def test_refresh_accounts_can_remove_invalid_token_without_confirmation_delay(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 123 | def test_refresh_accounts_defers_invalid_token_removal_by_default(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 150 | def test_anonymize_token_hides_raw_value(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 159 | def test_create_authenticate_disable_and_delete_user_key(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 185 | def test_authenticate_ignores_last_used_save_failure(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 201 | def test_update_user_key_replaces_raw_key(self) -> None: | CODE |
| LOW | test/test_account_image_capabilities.py | 215 | def test_user_key_name_must_be_unique(self) -> None: | CODE |
| LOW | test/test_v1_models.py | 17 | def test_list_models_only_returns_image_models_backed_by_account_types(self): | CODE |
| LOW | test/test_v1_models.py | 43 | def test_list_models_does_not_return_codex_models_for_web_plus_accounts(self): | CODE |
| LOW | test/test_v1_models.py | 65 | def test_list_models_function(self): | CODE |
| LOW | test/test_proxy_runtime_api.py | 42 | def get_proxy_runtime_settings(self) -> dict[str, object]: | CODE |
| LOW | test/test_proxy_runtime_api.py | 45 | def get_public_proxy_runtime_settings(self) -> dict[str, object]: | CODE |
| LOW | test/test_proxy_runtime_api.py | 127 | def test_proxy_test_can_use_active_runtime_when_url_is_empty(self) -> None: | CODE |
| LOW | test/test_proxy_runtime_api.py | 136 | def test_proxy_runtime_endpoint_reads_and_updates_runtime_config(self) -> None: | CODE |
| LOW | test/test_proxy_runtime_api.py | 156 | def test_clearance_test_endpoint_runs_clearance_refresh_without_returning_cookie_values(self) -> None: | CODE |
| LOW | test/test_proxy_runtime_api.py | 170 | def test_health_json_includes_proxy_runtime_status(self) -> None: | CODE |
| LOW | test/test_multi_image_results.py | 48 | def _get_attachment_download_url(self, conversation_id: str, attachment_id: str) -> str: | CODE |
| LOW | test/test_multi_image_results.py | 53 | def test_stream_id_extractor_keeps_full_file_ids(self) -> None: | CODE |
| LOW | test/test_multi_image_results.py | 65 | def test_conversation_record_extractor_finds_all_generated_assets(self) -> None: | CODE |
| LOW | test/test_multi_image_results.py | 114 | def test_poll_waits_for_generated_asset_ids_to_settle(self) -> None: | CODE |
| LOW | test/test_multi_image_results.py | 131 | def test_resolver_uses_file_and_sediment_urls(self) -> None: | CODE |
| LOW | test/test_multi_image_results.py | 147 | def test_resolver_keeps_stream_ids_when_poll_extension_fails(self) -> None: | CODE |
| LOW | test/test_multi_image_results.py | 157 | def test_responses_stream_emits_all_image_output_items(self) -> None: | CODE |
| LOW | test/test_v1_images_edits.py | 69 | def test_image_edit_stream_http(self): | CODE |
| LOW⚡ | test/test_image_base_url_api.py | 15 | def test_prefers_configured_base_url(self) -> None: | CODE |
| LOW⚡ | test/test_image_base_url_api.py | 23 | def test_falls_back_to_request_host(self) -> None: | CODE |
| LOW⚡ | test/test_image_base_url_api.py | 32 | def test_falls_back_to_request_netloc_when_host_missing(self) -> None: | CODE |
| LOW | test/test_init_proxy_config.py | 23 | def test_creates_warp_defaults_when_proxy_runtime_missing(self) -> None: | CODE |
| LOW | test/test_init_proxy_config.py | 41 | def test_existing_custom_runtime_is_not_overwritten(self) -> None: | CODE |
| LOW | test/test_init_proxy_config.py | 74 | def test_env_can_disable_runtime_defaults_for_warp_compose(self) -> None: | CODE |
| LOW | test/test_init_proxy_config.py | 95 | def test_bind_mounted_config_file_falls_back_when_atomic_replace_is_busy(self) -> None: | CODE |
| LOW | test/test_text_model_routing.py | 37 | def test_explicit_model_selects_only_advertising_account_type(self) -> None: | CODE |
| LOW | test/test_text_model_routing.py | 47 | def test_auto_model_keeps_existing_unfiltered_rotation(self) -> None: | CODE |
| LOW⚡ | test/test_text_model_routing.py | 60 | def test_anonymous_model_uses_anonymous_backend(self) -> None: | CODE |
| LOW⚡ | test/test_text_model_routing.py | 70 | def test_model_without_eligible_account_fails_closed(self) -> None: | CODE |
| LOW⚡ | test/test_text_model_routing.py | 80 | def test_text_backend_passes_requested_model_to_account_selector(self) -> None: | CODE |
| LOW | test/test_text_model_routing.py | 95 | def test_chat_completions_passes_requested_model_to_text_backend(self) -> None: | CODE |
| LOW | test/test_text_model_routing.py | 108 | def test_responses_passes_requested_model_to_text_backend(self) -> None: | CODE |
| LOW | test/test_text_model_routing.py | 118 | def test_anthropic_messages_passes_requested_model_to_account_selector(self) -> None: | CODE |
| LOW | test/test_text_model_routing.py | 135 | def test_invalid_token_retry_keeps_requested_model_filter(self) -> None: | CODE |
| 270 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_v1_images_edits.py | 113 | except Exception: | CODE |
| LOW | test/test_v1_messages.py | 40 | except Exception: | CODE |
| LOW | test/test_v1_messages.py | 79 | except Exception: | CODE |
| LOW | test/test_v1_chat_completions.py | 116 | except Exception: | CODE |
| LOW | test/test_v1_responses.py | 55 | except Exception: | CODE |
| LOW | test/test_v1_responses.py | 98 | except Exception: | CODE |
| LOW | test/test_v1_responses.py | 129 | except Exception: | CODE |
| LOW | test/test_v1_responses.py | 185 | except Exception: | CODE |
| LOW | test/test_v1_responses.py | 222 | except Exception: | CODE |
| LOW | test/test_v1_responses.py | 278 | except Exception: | CODE |
| LOW | test/test_v1_images_generations.py | 75 | except Exception: | CODE |
| LOW | utils/turnstile.py | 53 | except Exception: | CODE |
| LOW | utils/turnstile.py | 182 | except Exception: | CODE |
| LOW | utils/log.py | 26 | except Exception: | CODE |
| LOW | utils/image_tokens.py | 55 | except Exception: | CODE |
| LOW | utils/image_tokens.py | 71 | except Exception: | CODE |
| LOW | utils/image_tokens.py | 209 | except Exception: | CODE |
| LOW | utils/image_tokens.py | 283 | except Exception: | CODE |
| LOW | utils/helper.py | 59 | except Exception as exc: | CODE |
| LOW | utils/helper.py | 183 | except Exception: | CODE |
| LOW | utils/helper.py | 199 | except Exception as exc: | CODE |
| LOW | utils/helper.py | 218 | except Exception as exc: | CODE |
| LOW | utils/helper.py | 349 | except Exception as exc: | CODE |
| MEDIUM | utils/helper.py | 212 | def anthropic_sse_stream(items) -> Iterator[str]: | CODE |
| LOW | utils/sentinel.py | 140 | except Exception: | CODE |
| LOW | scripts/test_storage.py | 120 | except Exception as e: | CODE |
| LOW | scripts/test_outlook_token_mailbox.py | 132 | except Exception: | CODE |
| LOW | scripts/test_outlook_token_mailbox.py | 166 | except Exception: | CODE |
| LOW | scripts/test_outlook_token_mailbox.py | 191 | except Exception: | CODE |
| LOW | scripts/test_outlook_token_mailbox.py | 206 | except Exception: | CODE |
| LOW | scripts/test_outlook_token_mailbox.py | 224 | except Exception: | CODE |
| LOW | scripts/test_outlook_token_mailbox.py | 258 | except Exception: | CODE |
| LOW | scripts/test_outlook_token_mailbox.py | 292 | except Exception as error: | CODE |
| LOW | scripts/test_outlook_token_mailbox.py | 305 | except Exception as error: | CODE |
| LOW | api/support.py | 108 | except Exception as exc: | CODE |
| LOW | api/accounts.py | 263 | except Exception as e: | CODE |
| LOW | api/accounts.py | 291 | except Exception as e: | CODE |
| LOW | api/accounts.py | 501 | except Exception as exc: | CODE |
| LOW | api/accounts.py | 513 | except Exception as exc: | CODE |
| MEDIUM | api/accounts.py | 260 | def _do_refresh(): | CODE |
| MEDIUM | api/accounts.py | 288 | def _do_relogin(): | CODE |
| LOW | api/ai.py | 88 | except Exception as exc: | CODE |
| LOW | api/ai.py | 187 | except Exception as exc: | CODE |
| LOW | api/image_inputs.py | 274 | except Exception as exc: | CODE |
| LOW⚡ | services/openai_backend_api.py | 1663 | except Exception: | CODE |
| LOW | services/openai_backend_api.py | 226 | except Exception: | CODE |
| LOW | services/openai_backend_api.py | 621 | except Exception: | CODE |
| LOW | services/openai_backend_api.py | 729 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 740 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 857 | except Exception: | CODE |
| LOW | services/openai_backend_api.py | 1090 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 1815 | except Exception: | CODE |
| LOW | services/openai_backend_api.py | 2223 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 2424 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 2455 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 2534 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 2595 | except Exception: | CODE |
| LOW | services/openai_backend_api.py | 2640 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 2649 | except Exception: | CODE |
| LOW | services/auth_service.py | 66 | except Exception: | CODE |
| 92 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | utils/image_tokens.py | 82 | except (TypeError, ValueError): | CODE |
| HIGH | utils/helper.py | 183 | except Exception: | CODE |
| HIGH | scripts/test_outlook_token_mailbox.py | 258 | except Exception: | CODE |
| HIGH | services/openai_backend_api.py | 226 | except Exception: | CODE |
| HIGH | services/openai_backend_api.py | 2595 | except Exception: | CODE |
| HIGH | services/openai_backend_api.py | 2649 | except Exception: | CODE |
| HIGH | services/openai_backend_api.py | 857 | except Exception: | CODE |
| HIGH | services/auth_service.py | 247 | except Exception: | CODE |
| HIGH | services/config.py | 543 | except OSError: | CODE |
| HIGH | services/backup_service.py | 330 | except Exception: | CODE |
| HIGH | services/backup_service.py | 349 | except Exception: | CODE |
| HIGH | services/account_service.py | 69 | except Exception: | CODE |
| HIGH | services/account_service.py | 76 | except Exception: | CODE |
| HIGH | services/account_service.py | 700 | except Exception: | CODE |
| HIGH | services/account_service.py | 713 | except Exception: | CODE |
| HIGH | services/account_service.py | 784 | except Exception: | CODE |
| HIGH | services/account_service.py | 808 | except Exception: | CODE |
| HIGH | services/editable_file_task_service.py | 256 | except Exception: | CODE |
| HIGH | services/image_service.py | 26 | except OSError: | CODE |
| HIGH | services/image_service.py | 273 | except Exception: | CODE |
| HIGH | services/image_service.py | 369 | except Exception: | CODE |
| HIGH | services/sub2api_service.py | 85 | except Exception: | CODE |
| HIGH | services/image_task_service.py | 346 | except Exception: | CODE |
| HIGH | services/cpa_service.py | 85 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | main.py | 1 | CODE | |
| LOW | test/test_model_catalog_service.py | 1 | CODE | |
| LOW | test/test_image_storage_service.py | 1 | CODE | |
| LOW | test/test_image_tasks_api.py | 1 | CODE | |
| LOW | test/test_account_image_capabilities.py | 1 | CODE | |
| LOW | test/test_v1_models.py | 1 | CODE | |
| LOW | test/test_proxy_runtime_api.py | 1 | CODE | |
| LOW | test/test_gpt_ppt.py | 1 | CODE | |
| LOW | test/test_multi_image_results.py | 1 | CODE | |
| LOW | test/test_v1_images_edits.py | 1 | CODE | |
| LOW | test/test_gpt_search.py | 1 | CODE | |
| LOW | test/test_v1_messages.py | 1 | CODE | |
| LOW | test/test_image.py | 1 | CODE | |
| LOW | test/test_text_model_routing.py | 1 | CODE | |
| LOW | test/test_image_task_service.py | 1 | CODE | |
| LOW | test/test_v1_chat_completions.py | 1 | CODE | |
| LOW | test/test_v1_images_edits_json.py | 1 | CODE | |
| LOW | test/test_image_tokens.py | 1 | CODE | |
| LOW | test/test_chat_completion_cache.py | 1 | CODE | |
| LOW | test/test_v1_responses.py | 1 | CODE | |
| LOW | test/test_v1_images_generations.py | 1 | CODE | |
| LOW | test/test_v1_images_edits_api.py | 1 | CODE | |
| LOW | test/test_gpt_psd.py | 1 | CODE | |
| LOW | utils/pkce.py | 2 | CODE | |
| LOW | utils/image_tokens.py | 1 | CODE | |
| LOW | utils/sentinel.py | 5 | CODE | |
| LOW | utils/sentinel.py | 15 | CODE | |
| LOW | scripts/test_outlook_token_mailbox.py | 1 | CODE | |
| LOW | scripts/verify_oauth_refresh.py | 13 | CODE | |
| LOW | scripts/init_proxy_config.py | 4 | CODE | |
| LOW | api/system.py | 1 | CODE | |
| LOW | api/support.py | 1 | CODE | |
| LOW | api/accounts.py | 1 | CODE | |
| LOW | api/ai.py | 1 | CODE | |
| LOW | api/__init__.py | 1 | CODE | |
| LOW | api/image_inputs.py | 1 | CODE | |
| LOW | api/image_tasks.py | 1 | CODE | |
| LOW | api/app.py | 1 | CODE | |
| LOW | api/errors.py | 1 | CODE | |
| LOW | services/auth_service.py | 1 | CODE | |
| LOW | services/config.py | 1 | CODE | |
| LOW | services/backup_service.py | 1 | CODE | |
| LOW | services/backup_service.py | 18 | CODE | |
| LOW | services/account_service.py | 1 | CODE | |
| LOW | services/oauth_login_service.py | 13 | CODE | |
| LOW | services/editable_file_task_service.py | 1 | CODE | |
| LOW | services/model_service.py | 1 | CODE | |
| LOW | services/log_service.py | 1 | CODE | |
| LOW | services/proxy_service.py | 3 | CODE | |
| LOW | services/content_filter.py | 1 | CODE | |
| LOW | services/image_service.py | 1 | CODE | |
| LOW | services/image_service.py | 6 | CODE | |
| LOW | services/sub2api_service.py | 3 | CODE | |
| LOW | services/image_task_service.py | 1 | CODE | |
| LOW | services/image_tags_service.py | 1 | CODE | |
| LOW | services/image_tags_service.py | 4 | CODE | |
| LOW | services/cpa_service.py | 3 | CODE | |
| LOW | services/image_storage_service.py | 1 | CODE | |
| LOW | services/protocol/openai_search.py | 1 | CODE | |
| LOW | services/protocol/conversation.py | 1 | CODE | |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_codex_4k.py | 21 | CODE | |
| LOW | utils/turnstile.py | 49 | CODE | |
| LOW | utils/turnstile.py | 106 | CODE | |
| LOW | utils/log.py | 67 | CODE | |
| LOW | utils/image_tokens.py | 267 | CODE | |
| LOW | utils/helper.py | 302 | CODE | |
| LOW | utils/helper.py | 397 | CODE | |
| LOW | scripts/test_storage.py | 21 | CODE | |
| LOW | api/support.py | 82 | CODE | |
| LOW | api/support.py | 85 | CODE | |
| LOW | services/openai_backend_api.py | 438 | CODE | |
| LOW | services/openai_backend_api.py | 718 | CODE | |
| LOW | services/openai_backend_api.py | 1791 | CODE | |
| LOW | services/openai_backend_api.py | 1985 | CODE | |
| LOW | services/openai_backend_api.py | 2095 | CODE | |
| LOW | services/openai_backend_api.py | 2128 | CODE | |
| LOW | services/openai_backend_api.py | 2483 | CODE | |
| LOW | services/auth_service.py | 225 | CODE | |
| LOW | services/backup_service.py | 558 | CODE | |
| LOW | services/account_service.py | 189 | CODE | |
| LOW | services/account_service.py | 437 | CODE | |
| LOW | services/account_service.py | 473 | CODE | |
| LOW | services/account_service.py | 585 | CODE | |
| LOW | services/account_service.py | 1301 | CODE | |
| LOW | services/account_service.py | 1335 | CODE | |
| LOW | services/account_service.py | 1483 | CODE | |
| LOW | services/model_service.py | 111 | CODE | |
| LOW | services/log_service.py | 116 | CODE | |
| LOW | services/proxy_service.py | 171 | CODE | |
| LOW | services/content_filter.py | 40 | CODE | |
| LOW | services/content_filter.py | 52 | CODE | |
| LOW | services/image_service.py | 194 | CODE | |
| LOW | services/image_service.py | 278 | CODE | |
| LOW | services/image_service.py | 320 | CODE | |
| LOW | services/sub2api_service.py | 271 | CODE | |
| LOW | services/sub2api_service.py | 333 | CODE | |
| LOW | services/image_storage_service.py | 338 | CODE | |
| LOW | services/protocol/conversation.py | 155 | CODE | |
| LOW | services/protocol/conversation.py | 169 | CODE | |
| LOW | services/protocol/conversation.py | 240 | CODE | |
| LOW | services/protocol/conversation.py | 713 | CODE | |
| LOW | services/protocol/conversation.py | 838 | CODE | |
| LOW | services/protocol/conversation.py | 1290 | CODE | |
| LOW | services/protocol/conversation.py | 1529 | CODE | |
| LOW | services/protocol/conversation.py | 1620 | CODE | |
| LOW | services/protocol/anthropic_v1_messages.py | 225 | CODE | |
| LOW | services/protocol/openai_v1_response.py | 85 | CODE | |
| LOW | services/protocol/web_search_tool.py | 48 | CODE | |
| LOW | services/protocol/web_search_tool.py | 127 | CODE | |
| LOW | services/protocol/openai_v1_chat_complete.py | 263 | CODE | |
| LOW | services/protocol/error_response.py | 19 | CODE | |
| LOW | services/storage/database_storage.py | 46 | CODE | |
| LOW | services/storage/database_storage.py | 74 | CODE | |
| LOW | services/storage/database_storage.py | 89 | CODE | |
| LOW | services/storage/factory.py | 12 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | web/src/lib/api.ts | 700 | // ── CPA (CLIProxyAPI) ────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/lib/api.ts | 770 | // ── Sub2API ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/lib/api.ts | 866 | // ── Upstream proxy ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | utils/sentinel.py | 87 | # ── 默认 User-Agent 和 sec-ch-ua ────────────────────────────── | COMMENT |
| MEDIUM | services/account_service.py | 607 | # ─── 方式2: OAuth authorize 流程 ────────────────────────── | COMMENT |
| MEDIUM | services/account_service.py | 735 | # ─── 处理邮箱 OTP 验证 ────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | services/account_service.py | 1397 | def update_refresh_progress(self, progress_id: str, token: str) -> None: | CODE |
| LOW | services/account_service.py | 1446 | def update_relogin_progress(self, progress_id: str, token: str, status: str, error: str | None = None) -> None: | CODE |
| LOW | services/editable_file_task_service.py | 164 | def _update_task(self, key: str, **updates: Any) -> None: | CODE |
| LOW | services/proxy_service.py | 414 | def _set_cached_bundle(self, key: tuple[str, str], bundle: ClearanceBundle) -> None: | CODE |
| LOW | services/sub2api_service.py | 470 | def _update_job(self, server_id: str, **updates) -> None: | CODE |
| LOW | services/image_task_service.py | 349 | def _update_task(self, key: str, **updates: Any) -> None: | CODE |
| LOW | services/protocol/conversation.py | 592 | def update_conversation_state(state: ConversationState, payload: str, event: dict[str, Any] | None = None) -> None: | CODE |
| LOW | services/storage/__init__.py | 5 | __all__ = ["create_storage_backend"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | utils/sentinel.py | 104 | 请求 sentinel token 并返回 (sentinel_header_value, oai_sc_cookie_value)。 Args: session: curl_cffi Session 实例 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker-compose.local.yml | 21 | # DATABASE_URL: postgresql://user:password@host:5432/dbname | COMMENT |
| LOW | docker-compose.yml | 21 | # - GIT_TOKEN=ghp_xxxxxxxxxxxx | COMMENT |
| LOW | test/test_codex_4k.py | 1 | #!/usr/bin/env python3 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/src/app/settings/components/sub2api-connections.tsx | 603 | placeholder="admin@example.com" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | services/backup_service.py | 236 | CODE |