Skip to content

test: add unit tests for isGPT4Model#6824

Merged
Leizhenpeng merged 1 commit into
ChatGPTNextWeb:mainfrom
TIANQIAN1238:feat-test-is-gpt4-model
Jul 6, 2026
Merged

test: add unit tests for isGPT4Model#6824
Leizhenpeng merged 1 commit into
ChatGPTNextWeb:mainfrom
TIANQIAN1238:feat-test-is-gpt4-model

Conversation

@TIANQIAN1238

Copy link
Copy Markdown
Contributor

💻 变更类型 | Change Type

  • test

🔀 变更说明 | Description of Change

Adds test/is-gpt4-model.test.ts for isGPT4Model (app/utils/model.ts): matches the gpt-4 / chatgpt-4o / o1 families, excludes gpt-4o-mini, and rejects non-gpt-4 models.

No production code is modified.

🤖 Generated with Claude Code

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>
@Leizhenpeng
Leizhenpeng merged commit 9214000 into ChatGPTNextWeb:main Jul 6, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants