ChatGPT官网接口纯协议的逆向实现,支持GPT-Image-2模型、文本模型,兼容OpenAI接口协议,在线批量生图/编辑图,号池管理,支持可编辑PPT/PSD文件逆向,支持导入CPA、sub2api号池 、支持接入Cherry Studio、New Api 等软件
This report presents the forensic synthetic code analysis of basketikun/chatgpt2api, a Python project with 5,070 GitHub stars. SynthScan v2.0 examined 41,556 lines of code across 181 source files, recording 586 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 14.2 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 586 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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_image_task_service.py | 37 | def test_duplicate_submit_uses_existing_task(self): | CODE |
| LOW | test/test_image_task_service.py | 71 | def test_different_owner_cannot_query_task(self): | CODE |
| LOW | test/test_image_task_service.py | 89 | def test_success_task_persists_to_new_service_instance(self): | CODE |
| LOW | test/test_image_task_service.py | 110 | def test_startup_marks_unfinished_tasks_as_error(self): | CODE |
| LOW | test/test_v1_chat_completions.py | 16 | def test_text_completion_http(self): | CODE |
| LOW | test/test_v1_chat_completions.py | 36 | def test_text_completion_stream_http(self): | CODE |
| LOW | test/test_v1_chat_completions.py | 60 | def test_image_completion_http(self): | CODE |
| LOW | test/test_v1_chat_completions.py | 83 | def test_image_completion_stream_http(self): | CODE |
| LOW⚡ | test/test_v1_images_edits_json.py | 39 | def test_json_model_omitted_uses_existing_default_logic(self): | CODE |
| LOW⚡ | test/test_v1_images_edits_json.py | 44 | def test_json_model_is_not_overwritten_when_provided(self): | CODE |
| LOW⚡ | test/test_v1_images_edits_json.py | 53 | def test_image_edit_accepts_json_image_url(self): | CODE |
| LOW | test/test_v1_images_edits_json.py | 91 | def test_image_edit_keeps_original_multipart_multiple_image_logic(self): | CODE |
| LOW⚡ | test/test_v1_images_edits_json.py | 109 | def test_image_edit_rejects_json_without_image(self): | CODE |
| LOW⚡ | test/test_v1_images_edits_json.py | 114 | def test_image_edit_rejects_remote_json_url(self): | CODE |
| 236 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 | 1638 | except Exception: | CODE |
| LOW | services/openai_backend_api.py | 212 | except Exception: | CODE |
| LOW | services/openai_backend_api.py | 602 | except Exception: | CODE |
| LOW | services/openai_backend_api.py | 710 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 721 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 838 | except Exception: | CODE |
| LOW | services/openai_backend_api.py | 1065 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 1790 | except Exception: | CODE |
| LOW | services/openai_backend_api.py | 2198 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 2399 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 2430 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 2509 | except Exception as exc: | CODE |
| LOW | services/openai_backend_api.py | 2570 | except Exception: | CODE |
| LOW | services/auth_service.py | 66 | except Exception: | CODE |
| LOW | services/auth_service.py | 247 | except Exception: | CODE |
| MEDIUM | services/auth_service.py | 63 | def _load(self) -> list[dict[str, object]]: | CODE |
| 87 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | main.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_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/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 | |
| LOW | services/protocol/anthropic_v1_messages.py | 1 | CODE | |
| LOW | services/protocol/chat_completion_cache.py | 1 | CODE | |
| LOW | services/protocol/openai_v1_image_edit.py | 1 | CODE | |
| 10 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 | 424 | CODE | |
| LOW | services/openai_backend_api.py | 699 | CODE | |
| LOW | services/openai_backend_api.py | 1766 | CODE | |
| LOW | services/openai_backend_api.py | 1960 | CODE | |
| LOW | services/openai_backend_api.py | 2070 | CODE | |
| LOW | services/openai_backend_api.py | 2103 | CODE | |
| LOW | services/openai_backend_api.py | 2458 | 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 | 1281 | CODE | |
| LOW | services/account_service.py | 1315 | CODE | |
| LOW | services/account_service.py | 1463 | 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 | 682 | CODE | |
| LOW | services/protocol/conversation.py | 797 | CODE | |
| LOW | services/protocol/conversation.py | 1250 | CODE | |
| LOW | services/protocol/conversation.py | 1480 | CODE | |
| LOW | services/protocol/conversation.py | 1571 | CODE | |
| LOW | services/protocol/anthropic_v1_messages.py | 224 | 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/factory.py | 12 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | web/src/lib/api.ts | 697 | // ── CPA (CLIProxyAPI) ────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/lib/api.ts | 767 | // ── Sub2API ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/lib/api.ts | 863 | // ── 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 | 1377 | def update_refresh_progress(self, progress_id: str, token: str) -> None: | CODE |
| LOW | services/account_service.py | 1426 | 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 | 561 | 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 |