Repository navigation
Cursor/upstream sync ownapi a4eb - #3
Merged
Merged
Conversation
Return conversion diagnostics from explicit reasoning intent parsing and Gemini thinking-control conversion, collect them through a context collector, and record them on the relay info so best-effort conversions are visible instead of silently dropped.
…sify stream results Sample each relay once when the request finishes instead of inside the billing paths, classify the protocol outcome (completed, failed, incomplete, cancelled) on the stream status from events the adaptors already parse, and show response status and success-rate windows in the dashboard and model cards.
…response outcome Track in-flight reservations in the memory limiter and count a request as successful only when its response outcome completed, instead of relying on the HTTP status code alone.
Parse the stream identity from the WebSocket envelope, echo it on create and error events, attribute upstream errors to the pending control or the active response, and record routing decisions and relay metrics for WebSocket calls.
List system tasks by type, status and scope with paging, show a history table beside the active task panel, and add DELETE /api/system-task/history to purge finished entries.
Only MiniMax-H3 charges for input media and each family renders its own set of output resolutions, so build the usage schema per model instead of sharing one schema across the plugin.
Enforce toIntlLocale() for every Intl call through a project oxlint plugin with its own tests, adopt it in the billing time fields, add the missing floating-window labels, and refresh the agent instructions.
Lay out the channel health form with the shared settings grid so switch rows span the full width and inputs align in two columns instead of a fixed three-column grid that stretched the switches. Nest the test mode and interval under the scheduled tests switch, make the mode select fill its column, and replace the alert boxes and channels link at the top with plain hint text. Add a layout regression test and the new group label translation.
Allow Advanced Custom, Sub2API and New API channels for Responses WebSocket when the per-channel toggle is on. Advanced Custom requires a converter-free /v1/responses route, and editing the route's upstream path, conversion or credential placement forces a reconnect. Match token model limits the same way HTTP does, share channel selection and used-channel tracking between the distributor and the WebSocket session, record channel affinity on the first accepted upstream event, parse the create envelope once, restore the default type for synthesized upstream errors, fold proxy, request context and handshake status into DoWssRequest, send the upstream close frame on policy close, drop the unobservable policy defer lines and cover the control and late-error branches that had no tests.
…sub2api and new-api channels Gate the toggle, the quick option and the configuration marker through one shared predicate that mirrors the backend allow list, add the Sub2API channel type constant, and explain under the toggle that advanced custom channels only use converter-free /v1/responses routes.
…tumNous#7272) * fix: subscription log * fix(usage-logs): hide wallet labels when subscriptions are unavailable
* feat(log): flag upstream response model mismatches * fix(log): refine response model mismatch warnings * fix(log): skip model details when no mapping or response difference exists * fix(log): omit redundant response model metadata
…uantumNous#7427) Tool-call argument, reasoning and refusal deltas now feed the completion estimate, and a stream that produced any upstream event bills its estimated prompt tokens unless upstream reported an explicit failure. Responses streams interrupted before response.completed no longer settle at zero and refund the whole pre-consume. Inspired by QuantumNous#7195. Refs QuantumNous#7062.
…indings Legacy GitHub bindings stored the login name, while current bindings store the numeric account ID. A legacy match no longer signs the user in on its own. When the account has two-factor or a passkey, the binding is rewritten only after that verification completes, inside the transaction that issues the session. Otherwise it is rewritten when one of the GitHub account's verified emails matches the account email. Without either, the login is declined with guidance to sign in another way and relink GitHub in account settings. All-digit login names never take part in the comparison, the bind flow no longer compares login names, and every migration or declined attempt is recorded as an account binding audit event.
* perf: avoid repeated Claude tool-name lookups * refactor(relaykit): name tool-result backfill type and drop unused lookup Replace the repeated anonymous struct in the Claude-to-chat converter with a local named type, and remove SearchToolNameByToolCallId now that the converter resolves tool names in a single pass and nothing else calls it.
* refactor(log): restore compact cost bubbles and source icons * Delete .github/pr-previews/usage-log-cost-bubbles.png
* fix(web): accept fractional group ratios and tool prices * fix(web): mask portaled group options in usage log privacy mode * fix(web): limit pricing input steps to four decimal places
When the security verification dialog only offers OAuth, the provider button was a no-op selector for an already selected provider and the actual OAuth popup only opened from the footer Verify button. Make the provider button trigger verification directly, hide the footer Verify button on the OAuth tab, and let onVerify accept an explicit input so the clicked provider is used instead of stale state.
* fix(logging): 隐藏访问日志中的查询凭据 * fix(logging): redact query credentials in access logs --------- Co-authored-by: seefs001 <[email protected]>
Some vendors keep a task running for more than a day: Volcengine Ark waits 48 hours by default and up to 72 when configured, and Vidu off-peak jobs can take 48 hours. With the 24-hour default the gateway failed and refunded those tasks while the vendor was still producing, and charging for, the result. TASK_TIMEOUT_MINUTES now defaults to 4320. A task that is truly stuck is refunded after 72 hours instead of 24.
QuantumNous#7982) Bumps [react-resizable-panels](https://github.com/bvaughn/react-resizable-panels) from 4.12.2 to 4.14.6. - [Release notes](https://github.com/bvaughn/react-resizable-panels/releases) - [Changelog](https://github.com/bvaughn/react-resizable-panels/blob/main/CHANGELOG.md) - [Commits](bvaughn/react-resizable-panels@4.12.2...4.14.6) --- updated-dependencies: - dependency-name: react-resizable-panels dependency-version: 4.14.6 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>
…7980) Bumps [input-otp](https://github.com/guilhermerodz/input-otp/tree/HEAD/packages/input-otp) from 1.4.2 to 1.5.0. - [Release notes](https://github.com/guilhermerodz/input-otp/releases) - [Changelog](https://github.com/guilhermerodz/input-otp/blob/master/CHANGELOG.md) - [Commits](https://github.com/guilhermerodz/input-otp/commits/v1.5.0/packages/input-otp) --- updated-dependencies: - dependency-name: input-otp dependency-version: 1.5.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>
…7979) Bumps [i18next](https://github.com/i18next/i18next) from 26.3.6 to 26.5.3. - [Release notes](https://github.com/i18next/i18next/releases) - [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md) - [Commits](i18next/i18next@v26.3.6...v26.5.3) --- updated-dependencies: - dependency-name: i18next dependency-version: 26.5.3 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>
…umNous#7981) Bumps [react-i18next](https://github.com/i18next/react-i18next) from 17.0.10 to 17.1.0. - [Changelog](https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md) - [Commits](i18next/react-i18next@v17.0.10...v17.1.0) --- updated-dependencies: - dependency-name: react-i18next dependency-version: 17.1.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>
Bumps [axios](https://github.com/axios/axios) from 1.18.1 to 1.20.0. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v1.18.1...v1.20.0) --- updated-dependencies: - dependency-name: axios dependency-version: 1.20.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> Co-authored-by: CaIon <[email protected]>
…ens_details (QuantumNous#7909) OpenAI-compatible upstreams with explicit context cache (e.g. Alibaba Bailian) report cache-write tokens as prompt_tokens_details.cache_creation_input_tokens. The field was ignored, so cache-write tokens were billed at the plain input price instead of the cache-creation price. Parse it into InputTokenDetails.CacheCreationInputTokens and include it in CacheCreationTokensTotal using max() with the existing cache-write fields, so the same tokens are never counted twice.
…Nous#8010) * fix(pricing): classify dynamic per-request billing correctly * fix(pricing): classify mixed billing as token-based
…antumNous#7996) * fix(relaykit): preserve tool argument numbers in Claude responses * test(claude): assert serialized tool input contract
Replace wall-clock identifiers with an atomic sequence and test names so repeated Windows runs cannot share usage-cache entries. Verification: latest main baseline failed with cumulative counts; patched affinity tests passed -count=20; full service suite and go vet passed. Signed-off-by: sstar16 <[email protected]>
…antumNous#8047) (QuantumNous#8075) Azure channels with responses_websocket_enabled were rejected by FilterResponsesWebSocket, and the channel form hid the toggle for type 3. The OpenAI adaptor already builds the Azure /openai/v1/responses URL with api-version and sets the api-key header, and DoWssRequest reuses both, so no relay URL change is needed.
…brand) Merge upstream/main (~964 commits) into therealemery/new-api while keeping the 8 fork commits and Ownapi product branding (SystemName, DocsLink, ownapi.dev docs/footer/about, i18n, README, production docker-compose). Conflict resolution: upstream structure and features; fork strings for Ownapi defaults and AGPL attribution to QuantumNous/new-api in footer/about. Co-authored-by: emery <[email protected]>
7 of 13 tasks
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.
Important
📝 变更描述 / Description
合并原项目上游改动
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
(请在此粘贴截图、关键日志或测试报告,以证明变更生效)