Skip to content

Commit a29f945

Browse files
committed
2 parents 687b41c + 3809375 commit a29f945

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

app/client/platforms/openai.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

app/constant.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ export const VISION_MODEL_REGEXES = [
478478
/^dall-e-3$/, // Matches exactly "dall-e-3"
479479
/glm-4v/,
480480
/vl/i,
481+
/o3/,
482+
/o4-mini/,
481483
];
482484

483485
export const EXCLUDE_VISION_MODEL_REGEXES = [/claude-3-5-haiku-20241022/];
@@ -516,6 +518,8 @@ const openaiModels = [
516518
"o1-mini",
517519
"o1-preview",
518520
"o3-mini",
521+
"o3",
522+
"o4-mini",
519523
];
520524

521525
const googleModels = [

0 commit comments

Comments
 (0)