Repository navigation
合并上游 new-api 至 51a1ceea(11-23),保留 Ownapi 品牌 - #11
Merged
Merged
Conversation
MaskSensitiveInfo trimmed trailing punctuation one byte at a time and recounted the parentheses of the whole URL for each trailing ')'. Trim the punctuation set, including ')', with strings.TrimRight; the trimmed characters are still appended after the masked URL.
Upgrade @visactor/vchart and @visactor/react-vchart to 2.1.7. Since 2.1.6 the DOM tooltip renders the title as text (VisActor/VChart#4640).
Cap zstd windows at 8 MiB and the request body limit. Disable asynchronous decoding to avoid consuming bodies before downstream middleware accepts the request. Port the complete zstd fix and regression tests from the related advisory PR without importing unrelated commits. Validation in this repository with Go 1.26.10: GOMAXPROCS=2 go test -p 2 ./middleware -count=1 -timeout=180s GOMAXPROCS=1 go test -p 1 ./middleware -run '^TestDecompressRequestZstd' -count=1 -timeout=60s -v go mod verify All passed, including 14 decoding cases and early rejection without reading the body.
…e after rotation (QuantumNous#8098) The gin access logger and panic recovery captured gin.DefaultWriter and gin.DefaultErrorWriter when the server was built. Since log rotation closes the previous file, every [GIN] access line and [Recovery] stack after the first rotation reached stdout/stderr only and never any log file. Both middlewares now write through common.LogWriter / common.ErrorLogWriter, which forward each write to the current gin writers under LogWriterMu, so rotation can swap and close files without losing lines or leaking the old fd. The server-wide recovery moves from main.go to middleware.PanicRecover so the production wiring is covered by the regression test.
…uantumNous#8112) Bumps [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) from 4.1.4 to 4.1.6. - [Release notes](https://github.com/go-jose/go-jose/releases) - [Commits](go-jose/go-jose@v4.1.4...v4.1.6) --- updated-dependencies: - dependency-name: github.com/go-jose/go-jose/v4 dependency-version: 4.1.6 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps and [undici](https://github.com/nodejs/undici). These dependencies needed to be updated together. Updates `undici` from 7.30.0 to 7.30.1 - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v7.30.0...v7.30.1) Updates `undici` from 6.29.0 to 6.29.1 - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v7.30.0...v7.30.1) --- updated-dependencies: - dependency-name: undici dependency-version: 7.30.1 dependency-type: indirect - dependency-name: undici dependency-version: 6.29.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…uantumNous#8008) Bumps [electron](https://github.com/electron/electron) from 41.10.6 to 42.11.16. - [Release notes](https://github.com/electron/electron/releases) - [Commits](electron/electron@v41.10.6...v42.11.16) --- updated-dependencies: - dependency-name: electron dependency-version: 42.11.16 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…tumNous#8007) Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.7 to 3.1.9. - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](fastify/fast-uri@v3.1.7...v3.1.9) --- updated-dependencies: - dependency-name: fast-uri dependency-version: 3.1.9 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…Nous#8106) Bumps [tailwind-merge](https://github.com/dcastil/tailwind-merge/tree/HEAD/packages/tailwind-merge) from 3.6.0 to 3.7.0. - [Release notes](https://github.com/dcastil/tailwind-merge/releases) - [Commits](https://github.com/dcastil/tailwind-merge/commits/[email protected]/packages/tailwind-merge) --- updated-dependencies: - dependency-name: tailwind-merge dependency-version: 3.7.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…#8105) Bumps [knip](https://github.com/webpro-nl/knip/tree/HEAD/packages/knip) from 6.27.0 to 6.43.0. - [Release notes](https://github.com/webpro-nl/knip/releases) - [Commits](https://github.com/webpro-nl/knip/commits/[email protected]/packages/knip) --- updated-dependencies: - dependency-name: knip dependency-version: 6.43.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…Nous#8104) Bumps [@tanstack/react-query-devtools](https://github.com/TanStack/query/tree/HEAD/packages/react-query-devtools) from 5.101.2 to 5.105.0. - [Release notes](https://github.com/TanStack/query/releases) - [Changelog](https://github.com/TanStack/query/blob/main/packages/react-query-devtools/CHANGELOG.md) - [Commits](https://github.com/TanStack/query/commits/@tanstack/[email protected]/packages/react-query-devtools) --- updated-dependencies: - dependency-name: "@tanstack/react-query-devtools" dependency-version: 5.105.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
) Bumps [marked](https://github.com/markedjs/marked) from 18.0.6 to 18.1.2. - [Release notes](https://github.com/markedjs/marked/releases) - [Commits](markedjs/marked@v18.0.6...v18.1.2) --- updated-dependencies: - dependency-name: marked dependency-version: 18.1.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…uantumNous#8102) Bumps [@codemirror/language](https://github.com/codemirror/language) from 6.12.4 to 6.13.1. - [Changelog](https://github.com/codemirror/language/blob/main/CHANGELOG.md) - [Commits](https://github.com/codemirror/language/commits) --- updated-dependencies: - dependency-name: "@codemirror/language" dependency-version: 6.13.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
A plugin change can leave a task model without a usable price: no price is set, the price uses usage the plugin no longer provides, or the plugin no longer offers the model. The gateway now lists these models. The list follows the plugins currently serving, so a gateway update that changes a built-in plugin shows up too. - Uploading, installing from the marketplace, activating or enabling a plugin, or deleting its active version, lists the models it cannot charge in the upload dialog or in the notice after the action. - Model pricing marks each of them "Price needs attention" with the reason, and a "Price status" filter lists them. A plugin model that was never priced now appears in the table too. The badge replaces "Task pricing not configured". - The sidebar shows how many models need attention on System Settings, Billing & Payment and Model Pricing, for super administrators. - GET /api/option/model_pricing/issues returns the list. It is root only; access tokens need the option:read scope. - Prices kept for a switched-off plugin are not reported. They apply again when the plugin is switched back on.
Upgrade the direct dependency and override to address GHSA-cg2g-xh64-v4q7. Regenerate bun.lock with Bun and update the third-party license inventory.
* fix(profile): honor global sidebar visibility * fix(profile): wait for sidebar status
…r as the vendors do (QuantumNous#8117) * feat(plugins): serve task plugins at the vendors' own paths A vendor SDK or plain HTTP client can now point at the gateway and keep the vendor's official paths. Every plugin route is also served under /{plugin key}, and that address always runs that plugin. - Plugins declare the vendor's official paths and the gateway adds the /{key} copy. Existing prefixed addresses keep working, including /ali for Alibaba Bailian. - Several plugins may declare the same path. A submit runs on the plugin whose channel is selected; a query is answered by the plugin that owns the task. - Under the gateway's own path segments (/api, /v1, /v1beta and so on) only built-in plugins get top-level paths; other plugins are served at their /{key} address. Plugin keys cannot reuse these segments. - Jimeng uses the official Bearer API (/api/common/v3/submit_task_v2 and get_result_v2). The /jimeng/ route, which requests could not reach, is removed. - MiniMax supports the official v1 query with ?task_id= and /v1/files/retrieve. The unimplemented GET /v1/files/{id} placeholder is removed. Vertex AI also accepts v1beta1 paths. - Vidu routes accept Authorization: Token, and Google routes accept x-goog-api-key and ?key=. The key is redacted from logs. - Gemini Veo results are read from generatedSamples, so their videos download again. Vertex AI videos returned inline are fetched again when downloaded. - GET /v1/videos/{id} answers tasks created on xAI's routes in xAI's format, and :predictLongRunning requests reach the Veo plugin. - Enabling, activating or promoting a plugin version is refused when it conflicts with another plugin, and force no longer skips that check. - The plugin page lists each endpoint once, with a switch between the vendor path and the /{key} address. Legacy addresses are folded away. * fix(logging): use the shared query credential masking for key= The access log already masks credentials passed in the query string, key included. A second redaction for the Gemini ?key= form rewrote it to key=[REDACTED], so the log showed two masking styles and the masking tests failed. Only the shared masking remains. The Gemini native routes take ?key= out of the URL. With no query left, the log fell back to the path gin recorded on arrival, which still carried the key. The log now writes the path alone in that case, and the plugin API document no longer says the key is logged as key=[REDACTED]. * feat(plugins): answer native plugin routes as the vendors do A request sent to a vendor's own path now reaches the vendor as the client wrote it, and the client gets the vendor's reply shape and status. The gateway answers a native request with its own 400 only when it cannot tell the model, cannot price the request, or cannot provide the feature; the vendor checks everything else. - New gateway rejections of that kind on native routes: callback_url on Ark, Kling, Vidu and MiniMax; Kling external_task_id and a body with model but no model_name; xAI storage_options, which was dropped silently; and for Jimeng, req_json on get_result_v2, a req_key the plugin cannot price, and frames other than 121 or 241. A value the plugin cannot read reserves the model's dearest tier, and settlement is unchanged. - Native bodies are sent as the client wrote them. Plugins no longer fill in MiniMax-H3's duration, resolution and ratio or Vidu's movement_amplitude and images: null, drop Vidu's bgm: false, turn Jimeng's image and images into image_urls, or merge Ark's content. Kling requests no longer carry an added aspect_ratio 1:1, cfg_scale 0.5 or model field; without a size Kling uses its own 16:9. DashScope requests go to the endpoint the client called. - Replies keep each vendor's shapes and error codes. A native presenter may answer with the vendor's own status through a reply wrapper ({__status, __headers, __body}): xAI answers a pending video with 202, DashScope an unknown task with 200 UNKNOWN. A task the gateway failed shows as failed instead of still running. xAI's native query shows a video that failed but was charged as failed with xAI's usage, instead of done; billing is unchanged. - A native client that asks the vendor for a stream (Seedream with stream: true, Wan interleaved output with X-DashScope-Sse: enable) gets the vendor's events as they arrive. Once an event has reached the client the task settles and is never refunded: a finished stream bills what was delivered, and a stream that stopped early bills the reservation and cuts the client's connection, so a downstream gateway keeps its reservation too. The client leaving does not cancel the upstream request, which TASK_PLUGIN_PROTOCOL_TIMEOUT_SECONDS bounds. A JSON reply from an older new-api upstream is still accepted. - Routes that keep no result (retainResult: false) accept replies up to MAX_FILE_DOWNLOAD_MB, so b64_json images fit. - Native decoders get the client's request headers, without gateway credentials, as ctx.requestHeaders. - Native routes accept a channel's model aliases and case variants of model names, as the gateway's own formats do, also on routes that list their models. - Kling lists kling-v2-5-turbo, kling-v2-6 and kling-v3, priced in units per mode, sound and voice; Kling retired kling-v1, kling-v1-6 and kling-v2-master on 2026-09-15. Vidu lists its current models, from viduq4-preview to vidu1.5. - Clients of /v1/videos and the other gateway formats can no longer pass a native body through the field the plugins use for it internally. * feat(plugins): add Kling 4.0 to the kling plugin Kling 4.0 takes the model in the path and has its own request shape, so the plugin serves POST /text-to-video/kling-4.0, /image-to-video/kling-4.0 and /omni-video/kling-4.0 as native routes, and answers GET /tasks?task_ids= for their tasks. /v1/videos and the Responses API send kling-4.0 as text-to-video or image-to-video, with size picking 720p or 1080p. Billing follows Kling's price list: units per output second by resolution, or, with an input video, twice the output, or input plus output when the input is longer. Kling picks the length when the request has none and only Kling knows how long an input video is, so the reservation covers the longest of each. A task settles on the units Kling deducted, or, when Kling took cash, on the durations it reports. Kling 4.0 Flash has no published price yet and is left out. * chore(plugins): bump the task plugins this branch changes Each of these plugins now declares its vendor's own paths and answers native requests as the vendor does; kling also adds Kling 4.0. That is new behavior in every one of them, so each takes a minor version: alibaba 1.5.0, doubao 1.4.0, google 1.2.0, hailuo 1.4.0, jimeng 1.2.0, kling 1.2.0, vertex-ai 1.2.0, vidu 1.2.0 and xai 1.2.0.
…ize (QuantumNous#8118) Kling 4.0 makes videos of 3 to 30 seconds. The plugin accepted 1 to 3600, so a longer or shorter duration was reserved and then refunded when Kling refused it. It is now refused before anything is reserved. A /v1/videos size now gets the nearest of Kling's text-to-video aspect ratios, 21:9 included for Kling 4.0, and Kling 4.0 takes 720p or 1080p by the size's shorter side. Before, only four sizes were mapped: 720x720 was reserved at 1080p and 1792x1024 was sent as 1:1. A size that is not WIDTHxHEIGHT is refused.
…ntumNous#8119) Since the gateway also serves every route under /{key}, a plugin that declared both a top-level route and the same route under its key failed to load with "duplicate route". TypeSafe 1.2.0, already published, declares POST /v1/systemone and POST /typesafe/v1/systemone and stopped loading. The declared address now serves the copy, so the host no longer adds it a second time.
…sert fails (QuantumNous#8121) A native route relays the vendor's SSE events to the client as they arrive. If the final reserve or the task insert then failed, the controller refunded the whole reservation. The client kept the images and paid nothing. Once the first event reaches the client, the controller no longer refunds. A failed reserve no longer stops the submission. Settlement charges the actual quota and may overdraw the token, as ordinary settlement does. A failed task insert still settles the charge and writes the consume log.
) * perf: read and edit request JSON and base64 with moego Switch gjson/sjson to moego/ojson and base64 on media, file and plugin paths to moego/base64. Both keep the same results on valid input. - Param overrides apply every edit to one ojson.Doc and write the body once, instead of copying the whole body for each edit. - The video proxy and the audio check validate base64 without decoding it; plugin icons and inlined plugin files build data URLs directly. - Login, password, OAuth and signature code keeps gjson and encoding/base64. * perf: rewrite request fields without re-encoding the whole body Removing disabled fields, the Responses WebSocket create event, AWS Mantle and pass-through bodies, the OpenAI usage patch, alpha search, video result redaction and image SSE events now edit the body with ojson.Doc instead of decoding it into a map and encoding it again. Everything the gateway does not touch keeps the client's member order, number spelling and characters. - A key the client repeats is removed or rewritten in every copy, so an upstream that reads the last copy sees the same value the gateway routed and billed. A key that appears once is rewritten in place. - Image responses and the video proxy read large values without copying them. * perf: keep member order in param override merges and prune_objects Merging an object (append/prepend) now replaces existing members where they stand and appends new members, sorted by key, at the end. prune_objects deletes the matching objects from the body in place instead of encoding the pruned part, or the whole body, again. Everything else keeps the client's member order, number spelling and characters.
…ous#6420) xAIStreamHandler only copied prompt_tokens/total_tokens/completion_tokens when converting the xAI stream usage, dropping prompt_tokens_details (cached_tokens) and completion_tokens_details. As a result cached tokens from streaming grok requests never reach the log, and cache pricing is never applied — cached prompt tokens are billed at the full input rate. Non-stream requests already keep these fields via xAIHandler. Co-authored-by: Claude Fable 5 <[email protected]>
…mNous#8172) IncrementFailedAttempts kept the stale counter after a lockout window expired, so the first wrong code after expiry computed MaxFailAttempts+1 and re-locked the account for the full LockoutDuration. When the stored lockout has expired, start a new window at 1 and clear locked_until. Co-authored-by: Claude Opus 5.5 <[email protected]>
* feat(plugins): let request plugins declare where they run
A request processing plugin can declare meta.scope: the models and
channel types it is made for. An administrator confirms that scope once
("Where the plugin suggests") and the instance then runs on every
matching request, new channels and models included. The instance runs
only where both the confirmed scope and the plugin's current scope hold,
so an update that narrows the scope applies at once and one that widens
it waits until an administrator confirms it again. The save API accepts
only the declared scope or the one saved before.
Instances placed by hand work as before.
* feat(plugins): let several plugins declare one channel type
A built-in channel type used to belong to one plugin: a second plugin
declaring it was rejected with "channelType N conflicts". Community
plugins for the same vendor (several Zhipu plugins, say) could not be
enabled together.
Now every plugin declaring a channel type is indexed for it. A channel
of the type serves each of them: its plugin extensions list their models,
and a request runs the plugin whose model it asks for, the first in key
order when several share the model. Model names that differ only in case
and protocol clashes still conflict.
…#8341) An instance with a plugin scope runs where both the confirmed scope and the scope its plugin declares now hold the request. The two lists were intersected word for word, so a confirmed gpt-4o and a declared gpt-4o@effort:high shared nothing and the instance was skipped for gpt-4o@effort:high, which both hold. Each scope now matches the request on its own, modifiers included, and the instance runs when both match. The docs also say that a task submitted before a scope change still reports to the instances it stored, as for hand-placed instances.
Move the out-of-scope list, filing gates, required facts, and writing rules from the agent templates into .agents/github/CHECKS.md, so the posted body keeps only Agent, Request summary, Summary, Evidence, and Merge Danger or Blast Radius. Replace the verbatim user request with a short summary, collapse the Agent block to one line, and require a diagram in Summary when a PR changes a flow, call chain, state, or layout.
…antumNous#8345) Errors new-api raises itself because of the request no longer count against the channel: - A param override condition that meets a request value of another type (for example a string temperature in a numeric gt rule) now returns a 400 invalid_request that is not retried, instead of channel:param_override_invalid, which was retried on every channel and could auto-disable each of them. Invalid rules that fail every request (non-numeric rule value, unsupported mode) stay channel errors. - Image conversion failures use the shared convert-request-failed error, so they are no longer retried on other channels. - Automatic channel disabling skips errors classified as local by the request policy log, so a local status or a disable keyword echoed from client input cannot disable a channel. Upstream responses that adaptors report as new-api errors, and local wrappers around an upstream error, keep their upstream classification. The logged health entry now uses the same decision.
Keep Ownapi branding, https://ownapi.dev, the ghcr.io image workflow, and the system-update UI. Resolve AGENTS.md and locale conflicts. Co-authored-by: spizzkid23 <[email protected]>
Rebuild abilities from the channels read through the same transaction that updates their tags. Add regression cases for setting and clearing tags, preserving routing fields, and leaving unselected channels unchanged. Validation: go test ./model -count=1 -v -run 'TestBatchSetChannelTag|TestUpdateChannelStatus|TestChannelOtherInfo' passed with SQLite 3.50.4, MySQL 8.0.46, and PostgreSQL 16.15. The regression fails against the previous implementation.
Share cache pricing labels across the editor, pricing pages, usage logs, and estimator. Distinguish GPT 30m/12h, Claude 5m/1h, generic cache reads, and custom configurations while preserving existing prices. Add regression coverage and translations for all seven locales. Verified 832 related tests, focused final UI tests, type checking, lint, production build, and desktop/mobile browser checks.
…ntumNous#8136) Gemini may split one answer across several text parts. The Chat converters inserted a newline between consecutive text parts and dropped parts that were exactly "\n", so JSON split inside a key, string, number or escape reached clients as invalid JSON, and other text was silently altered. Plain text parts are now written as-is and empty parts add nothing; only rendered media, code and stream thought blocks keep their newline separation. Grounding citations use the byte offsets recorded while rendering instead of searching the output, so preserved newlines next to those blocks are cited at their real position.
Treat gemini-4-hydrogen as a thinkingLevel model so cross-protocol requests apply the requested strength. Pass xhigh and max through on hydrogen, pass max through on argon, and keep mapping minimal to low on both. Closes QuantumNous#8364
* fix(auth): reject API keys of deleted users with 401 Self-deleting an account soft-deletes the user but keeps its API keys. TokenAuth and TokenAuthReadOnly treated the missing user as a database failure and answered 500 "database error"; answer 401 invalid token instead, the same as an unknown key. * test(auth): cover deleted-user keys with a warm Redis user cache
* fix: 修复图片任务插件参数覆盖并补充百炼回归测试 * fix(task): isolate channel headers and track retry attempts
…8198) * fix(task): build text-only multipart requests from JSON * fix(task): preserve client content type across multipart retries
* fix(task): allow media downloads from the task channel origin * fix(task): recognize default ports on IPv6 media origins
…umNous#8412) * fix(relaykit): match Gemini 4 thinking levels by family prefix * fix(relaykit): cap Gemini 4 effort at documented thinking levels
按访问者的可用分组过滤模型标签、性能明细和汇总。管理员后台通过独立接口读取全站性能数据。
Verify that the callback pid matches the configured Epay PartnerID when RSA signing mode is enabled across EpayNotify, SubscriptionEpayNotify, and SubscriptionEpayReturn. MD5 callbacks preserve existing behavior, and mismatched or missing RSA callback pid values are logged and rejected before settlement.
* fix: report DeepSeek endpoint metadata accurately * fix(web): keep Gemini product name in Vietnamese * docs(web): document endpoint display helpers * fix(relay): route converted DeepSeek Claude requests to Responses * fix(web): copy endpoint identifiers from model badges * docs(relay): explain DeepSeek Responses URL routing * chore(deepseek): narrow PR to endpoint metadata
上游 1c63cc8..51a1cee 共 21 个新提交:已删除用户 API Key 返回 401、 模型广场不再显示私有分组、gpt-6.2 参数规则、Gemini 4 思考等级映射、 任务/插件修复、moego 升级等。 冲突只在 web/src/i18n/locales/*.json 末尾:保留 Ownapi 品牌键, 删去上游已移到别处的重复键。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
把上游 QuantumNous/new-api
main合到51a1ceea(2026-11-23)。上次同步 #8 是 squash 合并,GitHub 显示「落后 91 个提交」,但其中 70 个早已在 fork 里。真正新增的只有
1c63cc8c..51a1ceea这 21 个。第一个提交Record upstream ancestry…把 #8 原来的合并提交补进历史(文件内容不变),以后 GitHub 的落后计数和合并基点就准了。这个 PR 必须用 merge commit 合并,不要用 squash,否则历史又会断掉。
和 Ownapi 相关的上游改动
3a407cc9:已删除用户的 API Key 返回 4018542c9d6:模型广场按访问者可用分组过滤,不再显示私有分组(vip、svip、sales)3546e938:gpt-6.2-astra和gpt-6.2-sol套用 GPT-6 参数规则669d7749、a85f7e84、e8c6a5d9:Gemini 4 思考等级映射,文本分段拼接ce8fc49e:批量改渠道标签时在事务内读取ab85ae75、bb30732b:后台特殊分组倍率默认折叠,缓存计费标签统一计费表达式(
relay/helper/price.go、pkg/billingexpr)和 Stripe 都没有改动。冲突处理
只有
web/src/i18n/locales/*.json末尾有冲突。保留了 Ownapi 品牌键,删掉了上游已移到别处的重复键(By clicking sign in…/By creating an account…)。合并后Ownapi、ownapi.dev、OWNAPI_KEY的出现次数和main一致。验证
bun run build(web)通过go build .(内嵌 web/dist)通过go test ./...全部通过上线后
合并只会构建镜像。上线要在服务器上执行
docker compose pull && docker compose up -d。上线后抽查:🤖 Generated with Claude Code