LLM API 管理 & 分发系统,支持 OpenAI、Azure、Anthropic Claude、Google Gemini、DeepSeek、字节豆包、ChatGLM、文心一言、讯飞星火、通义千问、360 智脑、腾讯混元等主流模型,统一 API 适配,可用于 key 管理与二次分发。单可执行文件,提供 Docker 镜像,一键部署,开箱即用。LLM API management & key redistribution system, unifying multiple providers under a single API. Single binary, Docker-ready, with an English UI.
This report summarizes scanner evidence for songquanpeng/one-api, a JavaScript project with 37,487 GitHub stars. SynthScan examined 60,391 lines of code across 520 source files, recording 36 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low 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? 19 finding(s).
Are imports declared and package/API names verified? 17 finding(s).
Are wrappers, guards, and repeated structures necessary? 1 finding(s).
Which changes need focused human review? 36 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 36 distinct pattern matches across 5 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 | web/default/src/locales/zh/translation.json | 27 | "placeholder": "请输入兑换码", | CODE |
| LOW | web/default/src/locales/zh/translation.json | 235 | "placeholder": "排序方式", | CODE |
| LOW⚡ | web/default/src/locales/zh/translation.json | 623 | "placeholder": "为一个 JSON 文本,键为模型名称,值为倍率" | CODE |
| LOW⚡ | web/default/src/locales/zh/translation.json | 627 | "placeholder": "为一个 JSON 文本,键为模型名称,值为倍率,此处的倍率设置是模型补全倍率相较于提示倍率的比例,使用该设置可强制覆盖 One API 的内部比例" | CODE |
| LOW⚡ | web/default/src/locales/zh/translation.json | 631 | "placeholder": "为一个 JSON 文本,键为分组名称,值为倍率" | CODE |
| LOW | web/default/src/locales/zh/translation.json | 693 | "placeholder": "请输入主题名称" | CODE |
| LOW⚡ | web/default/src/locales/zh/translation.json | 705 | "placeholder": "在此输入首页内容,支持 Markdown & HTML 代码,设置后首页的状态信息将不再显示。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页 | CODE |
| LOW⚡ | web/default/src/locales/zh/translation.json | 709 | "placeholder": "在此输入新的关于内容,支持 Markdown & HTML 代码。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页作为关于页面。" | CODE |
| LOW⚡ | web/default/src/locales/zh/translation.json | 713 | "placeholder": "在此输入新的页脚,留空则使用默认页脚,支持 HTML 代码" | CODE |
| LOW | web/default/src/locales/en/translation.json | 27 | "placeholder": "Please enter redemption code", | CODE |
| LOW | web/default/src/locales/en/translation.json | 235 | "placeholder": "Sort By", | CODE |
| LOW⚡ | web/default/src/locales/en/translation.json | 625 | "placeholder": "A JSON text where keys are model names and values are ratios" | CODE |
| LOW⚡ | web/default/src/locales/en/translation.json | 629 | "placeholder": "A JSON text where keys are model names and values are ratios. These ratios are the proportion | CODE |
| LOW⚡ | web/default/src/locales/en/translation.json | 633 | "placeholder": "A JSON text where keys are group names and values are ratios" | CODE |
| LOW | web/default/src/locales/en/translation.json | 695 | "placeholder": "Please enter theme name" | CODE |
| LOW | web/default/src/locales/en/translation.json | 707 | "placeholder": "Enter homepage content here, supports Markdown & HTML code. Status information will not be sho | CODE |
| LOW | web/default/src/locales/en/translation.json | 717 | "placeholder": "Enter new footer here, leave empty to use default footer, supports HTML code" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/air/src/components/RedemptionsTable.js | 161 | const [showEdit, setShowEdit] = useState(false); | COMMENT |
| LOW | web/air/src/components/UsersTable.js | 41 | <Tag color="white" size="large">{renderQuota(record.used_quota)}</Tag> | COMMENT |
| LOW | web/air/src/components/ChannelsTable.js | 61 | // dataIndex: 'group', | COMMENT |
| LOW | web/air/src/components/ChannelsTable.js | 141 | keepFocus={true} | COMMENT |
| LOW | web/air/src/pages/Token/EditToken.js | 61 | COMMENT | |
| LOW | web/berry/src/serviceWorker.js | 1 | // This optional code is used to register a service worker. | COMMENT |
| LOW | …/berry/src/layout/MainLayout/Sidebar/MenuCard/index.js | 21 | COMMENT | |
| LOW | …/berry/src/layout/MainLayout/Sidebar/MenuCard/index.js | 61 | // <Grid container direction="column" spacing={1} sx={{ mt: 1.5 }}> | COMMENT |
| LOW | .github/workflows/ci.yml | 1 | name: CI | COMMENT |
| LOW | relay/adaptor/xunfei/domain.go | 1 | package xunfei | COMMENT |
| LOW | relay/adaptor/replicate/image.go | 21 | "golang.org/x/image/webp" | COMMENT |
| LOW | relay/adaptor/tencent/model.go | 1 | package tencent | COMMENT |
| LOW | relay/adaptor/tencent/model.go | 21 | Messages []*Message `json:"Messages"` | COMMENT |
| LOW | relay/adaptor/openai/token.go | 141 | gpt4oMiniLowDetailCost = 2833 | COMMENT |
| LOW | relay/adaptor/openai/token.go | 161 | // return 0, err | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/ci.yml | 32 | # When you execute your unit tests, make sure to use the "-coverprofile" flag to write a | COMMENT |
| LOW | model/user.go | 32 | // User if you add sensitive fields, don't forget to clean them in setupLogin function. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | relay/adaptor/replicate/constant.go | 57 | // "minimax/video-01", // TODO: implement the adaptor | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/air/src/helpers/render.js | 45 | export function renderQuotaNumberWithDigit(num, digits = 2) { | CODE |