[pull] main from ChatGPTNextWeb:main#30
Open
pull[bot] wants to merge 650 commits into
Open
Conversation
Cover plain-string wrapping, object stringification, the empty-object special case, and already-fenced json passthrough (app/utils/format.ts). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cover non-gateway passthrough, well-formed openai/azure gateway urls, and rebuilding an openai gateway url by dropping middle path segments (app/utils/cloudflare.ts). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cover the gpt-4 / chatgpt-4o / o1 families, the gpt-4o-mini exclusion, and non-matching models (app/utils/model.ts). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
test: add unit tests for prettyObject
test: add unit tests for cloudflareAIGatewayUrl
test: add unit tests for isGPT4Model
Adds coverage for the previously untested getOperationId helper in app/utils.ts (explicit operationId, method+path derivation, slash replacement, and the allowed id pattern). Purely additive — no existing files are changed. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/format-chunks.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/hmac-hex.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/hmac-hash.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/hmac-sign.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/safe-local-storage.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/adapter.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/collect-model-table.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/collect-model-with-default.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/model-available-in-server.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cover the navigator-based platform detection helpers (app/utils.ts) by stubbing navigator.userAgent for iOS, Firefox, macOS and other platforms. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cover default fields (role/content/id/date), override application, and id uniqueness for createMessage (app/store/chat.ts). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cover matching a ```json:mcp fenced block and rejecting ordinary content / plain json blocks (app/mcp/utils.ts). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cover extracting the client id and parsed payload from a json:mcp block, and returning null when absent (app/mcp/utils.ts). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cover the client-side branch of getClientConfig (app/config/client.ts): empty object with no config meta tag, and parsing the meta tag content when present. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The server reads AZURE_API_KEY, AZURE_URL and AZURE_API_VERSION (app/config/server.ts) for the Azure provider, but none of them were listed in .env.template. Add them next to the OpenAI settings. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
app/config/server.ts reads API key / url env vars for xAI, Moonshot, Stability, Baidu, ByteDance, Alibaba, Tencent, iFlytek and ChatGLM, but none of them were listed in .env.template. Add them so self-hosters can discover the supported providers. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/valid-string.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/get-bearer-token.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/limit-number.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/modal-config-validator.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/tts-config-validator.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/chat-command-prefix.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a small, focused, additive unit-test file (test/prosody-options.test.ts). No existing files are modified or removed. yarn test:ci passes locally. Co-authored-by: ytj-zuel <15623621570> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )