mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-12 04:53:44 +08:00
Compare commits
129 Commits
Leizhenpen
...
5f0f216973
Author | SHA1 | Date | |
---|---|---|---|
|
5f0f216973 | ||
|
705dffc664 | ||
|
02f7e6de98 | ||
|
97987481d9 | ||
|
3809375694 | ||
|
1b0de25986 | ||
|
865c45dd29 | ||
|
1f5d8e6d9c | ||
|
c9ef6d58ed | ||
|
2d7229d2b8 | ||
|
e0904aa041 | ||
|
11b37c15bd | ||
|
1d0038f17d | ||
|
619fa519c0 | ||
|
7d479ff38a | ||
|
48469bd8ca | ||
|
3c03d7da74 | ||
|
34cdd41488 | ||
|
a26ec428c0 | ||
|
16cd4ddad8 | ||
|
bdabce9dd8 | ||
|
ce6cbc3ab5 | ||
|
85ac28a463 | ||
|
a13d910df5 | ||
|
3fd2fbfaf3 | ||
|
801a273888 | ||
|
fc0fb16eff | ||
|
f137a6565b | ||
|
b4af8a10bb | ||
|
3731c35ab8 | ||
|
faf7498471 | ||
|
7a261451a4 | ||
|
10568e6fe1 | ||
|
686f8a2ae9 | ||
|
e36a2b88fa | ||
|
8f1ba300bd | ||
|
ea8915a262 | ||
|
c493dbcdb5 | ||
|
b55c779c79 | ||
|
eaa59dcac0 | ||
|
f5f90186e2 | ||
|
f133bcddee | ||
|
463cd81e89 | ||
|
3d31dd621f | ||
|
a82f6e0348 | ||
|
398f863a5d | ||
|
beb170bdd4 | ||
|
6c072258e1 | ||
|
a3b3e8d39c | ||
|
8316a97c0b | ||
|
0420da337d | ||
|
56f7f0efa0 | ||
|
475044db36 | ||
|
4b6e49b3b0 | ||
|
8e26eee1f9 | ||
|
43f05689b1 | ||
|
5dcb328073 | ||
|
f3923a388c | ||
|
2af0f7fd36 | ||
|
b42689c1f6 | ||
|
70312c32a0 | ||
|
e44658e970 | ||
|
a297c4c11b | ||
|
82077bac1b | ||
|
3c16b05276 | ||
|
38e141ce2b | ||
|
21406ceafc | ||
|
c3b95fb970 | ||
|
38f5cf503e | ||
|
fc3cf56458 | ||
|
c8b8e5dc79 | ||
|
8e9e2dbe80 | ||
|
6b4deb99b3 | ||
|
981df2f149 | ||
|
269b3fa6c7 | ||
|
74a43fb43d | ||
|
3a84dfe99a | ||
|
59a1bcf067 | ||
|
a870eb1889 | ||
|
7db224cee1 | ||
|
2501e3e1e9 | ||
|
02121f14d9 | ||
|
ecb29eba8d | ||
|
fd8dc6da66 | ||
|
d48bfb9ad5 | ||
|
2b26436737 | ||
|
651d17e44d | ||
|
083aa0f118 | ||
|
db44896922 | ||
|
2067a83111 | ||
|
33f1721ec8 | ||
|
6b33bcbe03 | ||
|
2975963a3c | ||
|
9013b96556 | ||
|
13b4085173 | ||
|
96ed96c550 | ||
|
35ab684845 | ||
|
654e8f8fd1 | ||
|
74b7411dff | ||
|
da9f428cd2 | ||
|
fb55d9fb1c | ||
|
258489adc8 | ||
|
408c29b80c | ||
|
6519f1666c | ||
|
8a963adbe1 | ||
|
22f8bce7a7 | ||
|
4313922d94 | ||
|
006bbb34be | ||
|
e01329fe5c | ||
|
316bb43f9e | ||
|
707012ff9f | ||
|
1adf3209d9 | ||
|
8464c07a34 | ||
|
0961991d23 | ||
|
3608d26a12 | ||
|
22968158b3 | ||
|
02d38807a5 | ||
|
2ff585adc2 | ||
|
157def1956 | ||
|
b325b44f2d | ||
|
986343f6dc | ||
|
2a66ce5139 | ||
|
6b4c8d5354 | ||
|
615aaec27d | ||
|
7ea2dc3533 | ||
|
82dfd1fafb | ||
|
9d15c8f34c | ||
|
59a3c6d1dd | ||
|
941bd69f9d |
15
README.md
15
README.md
@@ -22,7 +22,7 @@ English / [简体中文](./README_CN.md)
|
||||
[![MacOS][MacOS-image]][download-url]
|
||||
[![Linux][Linux-image]][download-url]
|
||||
|
||||
[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)
|
||||
[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)
|
||||
|
||||
|
||||
[saas-url]: https://nextchat.club?utm_source=readme
|
||||
@@ -40,13 +40,14 @@ English / [简体中文](./README_CN.md)
|
||||
|
||||
</div>
|
||||
|
||||
## 🥳 Cheer for DeepSeek, China's AI star!
|
||||
> Purpose-Built UI for DeepSeek Reasoner Model
|
||||
## 🥳 Cheer for NextChat iOS Version Online!
|
||||
> [👉 Click Here to Install Now](https://apps.apple.com/us/app/nextchat-ai/id6743085599)
|
||||
|
||||
> [❤️ Source Code Coming Soon](https://github.com/ChatGPTNextWeb/NextChat-iOS)
|
||||
|
||||

|
||||
|
||||
|
||||
<img src="https://github.com/user-attachments/assets/f3952210-3af1-4dc0-9b81-40eaa4847d9a"/>
|
||||
|
||||
|
||||
|
||||
## 🫣 NextChat Support MCP !
|
||||
> Before build, please set env ENABLE_MCP=true
|
||||
|
||||
|
@@ -198,7 +198,8 @@ export class ChatGPTApi implements LLMApi {
|
||||
const isDalle3 = _isDalle3(options.config.model);
|
||||
const isO1OrO3 =
|
||||
options.config.model.startsWith("o1") ||
|
||||
options.config.model.startsWith("o3");
|
||||
options.config.model.startsWith("o3") ||
|
||||
options.config.model.startsWith("o4-mini");
|
||||
if (isDalle3) {
|
||||
const prompt = getMessageTextContent(
|
||||
options.messages.slice(-1)?.pop() as any,
|
||||
@@ -243,7 +244,7 @@ export class ChatGPTApi implements LLMApi {
|
||||
}
|
||||
|
||||
// add max_tokens to vision model
|
||||
if (visionModel) {
|
||||
if (visionModel && !isO1OrO3) {
|
||||
requestPayload["max_tokens"] = Math.max(modelConfig.max_tokens, 4000);
|
||||
}
|
||||
}
|
||||
|
@@ -417,6 +417,14 @@ export const KnowledgeCutOffDate: Record<string, string> = {
|
||||
"gpt-4-turbo": "2023-12",
|
||||
"gpt-4-turbo-2024-04-09": "2023-12",
|
||||
"gpt-4-turbo-preview": "2023-12",
|
||||
"gpt-4.1": "2024-06",
|
||||
"gpt-4.1-2025-04-14": "2024-06",
|
||||
"gpt-4.1-mini": "2024-06",
|
||||
"gpt-4.1-mini-2025-04-14": "2024-06",
|
||||
"gpt-4.1-nano": "2024-06",
|
||||
"gpt-4.1-nano-2025-04-14": "2024-06",
|
||||
"gpt-4.5-preview": "2023-10",
|
||||
"gpt-4.5-preview-2025-02-27": "2023-10",
|
||||
"gpt-4o": "2023-10",
|
||||
"gpt-4o-2024-05-13": "2023-10",
|
||||
"gpt-4o-2024-08-06": "2023-10",
|
||||
@@ -458,6 +466,7 @@ export const DEFAULT_TTS_VOICES = [
|
||||
export const VISION_MODEL_REGEXES = [
|
||||
/vision/,
|
||||
/gpt-4o/,
|
||||
/gpt-4\.1/,
|
||||
/claude-3/,
|
||||
/gemini-1\.5/,
|
||||
/gemini-exp/,
|
||||
@@ -469,6 +478,8 @@ export const VISION_MODEL_REGEXES = [
|
||||
/^dall-e-3$/, // Matches exactly "dall-e-3"
|
||||
/glm-4v/,
|
||||
/vl/i,
|
||||
/o3/,
|
||||
/o4-mini/,
|
||||
];
|
||||
|
||||
export const EXCLUDE_VISION_MODEL_REGEXES = [/claude-3-5-haiku-20241022/];
|
||||
@@ -485,6 +496,14 @@ const openaiModels = [
|
||||
"gpt-4-32k-0613",
|
||||
"gpt-4-turbo",
|
||||
"gpt-4-turbo-preview",
|
||||
"gpt-4.1",
|
||||
"gpt-4.1-2025-04-14",
|
||||
"gpt-4.1-mini",
|
||||
"gpt-4.1-mini-2025-04-14",
|
||||
"gpt-4.1-nano",
|
||||
"gpt-4.1-nano-2025-04-14",
|
||||
"gpt-4.5-preview",
|
||||
"gpt-4.5-preview-2025-02-27",
|
||||
"gpt-4o",
|
||||
"gpt-4o-2024-05-13",
|
||||
"gpt-4o-2024-08-06",
|
||||
@@ -499,6 +518,8 @@ const openaiModels = [
|
||||
"o1-mini",
|
||||
"o1-preview",
|
||||
"o3-mini",
|
||||
"o3",
|
||||
"o4-mini",
|
||||
];
|
||||
|
||||
const googleModels = [
|
||||
@@ -525,6 +546,7 @@ const googleModels = [
|
||||
"gemini-2.0-flash-thinking-exp-01-21",
|
||||
"gemini-2.0-pro-exp",
|
||||
"gemini-2.0-pro-exp-02-05",
|
||||
"gemini-2.5-pro-preview-06-05",
|
||||
];
|
||||
|
||||
const anthropicModels = [
|
||||
|
Reference in New Issue
Block a user