File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ English / [简体中文](./README_CN.md)
2222[ ![ MacOS] [ MacOS-image ]] [ download-url ]
2323[ ![ Linux] [ Linux-image ]] [ download-url ]
2424
25- [ NextChatAI] ( https://nextchat.club?utm_source=readme ) / [ Web App Demo] ( https://app.nextchat.dev ) / [ Desktop App] ( https://github.com/Yidadaa/ChatGPT-Next-Web/releases ) / [ Discord ] ( https://discord.gg/YCkeafCafC ) / [ Enterprise Edition] ( #enterprise-edition ) / [ Twitter ] ( https://twitter.com/NextChatDev )
25+ [ NextChatAI] ( https://nextchat.club?utm_source=readme ) / [ iOS APP ] ( https://apps.apple.com/us/app/nextchat-ai/id6743085599 ) / [ Web App Demo] ( https://app.nextchat.dev ) / [ Desktop App] ( https://github.com/Yidadaa/ChatGPT-Next-Web/releases ) / [ Enterprise Edition] ( #enterprise-edition )
2626
2727
2828[ saas-url ] : https://nextchat.club?utm_source=readme
@@ -40,13 +40,14 @@ English / [简体中文](./README_CN.md)
4040
4141</div >
4242
43- ## 🥳 Cheer for DeepSeek, China's AI star!
44- > Purpose-Built UI for DeepSeek Reasoner Model
45-
46- <img src =" https://github.com/user-attachments/assets/f3952210-3af1-4dc0-9b81-40eaa4847d9a " />
43+ ## 🥳 Cheer for NextChat iOS Version Online!
44+ > [ 👉 Click Here to Install Now] ( https://apps.apple.com/us/app/nextchat-ai/id6743085599 )
4745
46+ > [ ❤️ Source Code Coming Soon] ( https://github.com/ChatGPTNextWeb/NextChat-iOS )
4847
48+ ![ Github iOS Image] ( https://github.com/user-attachments/assets/e0aa334f-4c13-4dc9-8310-e3b09fa4b9f3 )
4949
50+
5051## 🫣 NextChat Support MCP !
5152> Before build, please set env ENABLE_MCP=true
5253
Original file line number Diff line number Diff line change @@ -198,7 +198,8 @@ export class ChatGPTApi implements LLMApi {
198198 const isDalle3 = _isDalle3 ( options . config . model ) ;
199199 const isO1OrO3 =
200200 options . config . model . startsWith ( "o1" ) ||
201- options . config . model . startsWith ( "o3" ) ;
201+ options . config . model . startsWith ( "o3" ) ||
202+ options . config . model . startsWith ( "o4-mini" ) ;
202203 if ( isDalle3 ) {
203204 const prompt = getMessageTextContent (
204205 options . messages . slice ( - 1 ) ?. pop ( ) as any ,
@@ -243,7 +244,7 @@ export class ChatGPTApi implements LLMApi {
243244 }
244245
245246 // add max_tokens to vision model
246- if ( visionModel ) {
247+ if ( visionModel && ! isO1OrO3 ) {
247248 requestPayload [ "max_tokens" ] = Math . max ( modelConfig . max_tokens , 4000 ) ;
248249 }
249250 }
Original file line number Diff line number Diff line change @@ -478,6 +478,8 @@ export const VISION_MODEL_REGEXES = [
478478 / ^ d a l l - e - 3 $ / , // Matches exactly "dall-e-3"
479479 / g l m - 4 v / ,
480480 / v l / i,
481+ / o 3 / ,
482+ / o 4 - m i n i / ,
481483] ;
482484
483485export const EXCLUDE_VISION_MODEL_REGEXES = [ / c l a u d e - 3 - 5 - h a i k u - 2 0 2 4 1 0 2 2 / ] ;
@@ -516,6 +518,8 @@ const openaiModels = [
516518 "o1-mini" ,
517519 "o1-preview" ,
518520 "o3-mini" ,
521+ "o3" ,
522+ "o4-mini" ,
519523] ;
520524
521525const googleModels = [
You can’t perform that action at this time.
0 commit comments