-
Notifications
You must be signed in to change notification settings - Fork 59.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove the visual model judgment method that checks if the model… #5415
fix: remove the visual model judgment method that checks if the model… #5415
Conversation
… name contains 'preview' from the openai api to prevent models like o1-preview from being classified as visual models
@skymkmk is attempting to deploy a commit to the NextChat Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe changes involve a modification to the Changes
Poem
Tip OpenAI O1 model for chat
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Your build has completed! |
Remove the visual model judgment method that checks if the model name contains 'preview' from the OpenAI API to prevent models like o1-preview from being classified as visual models
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
通过 preview 来判断是否为视觉模型是过时的做法,最新的 o1-preview 暂时并不支持视觉,但在发送请求时会默认带上 4000 token 的限制,所以从 OpenAI 的 client 中去除该判断。
Summary by CodeRabbit
New Features
max_tokens
property, improving the handling of requests.Bug Fixes
max_tokens
was not consistently applied to vision model requests.