mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-13 05:23:42 +08:00
Compare commits
86 Commits
Leizhenpen
...
51189b1c24
Author | SHA1 | Date | |
---|---|---|---|
|
51189b1c24 | ||
|
b9e3f47243 | ||
|
3809375694 | ||
|
1b0de25986 | ||
|
865c45dd29 | ||
|
1f5d8e6d9c | ||
|
c9ef6d58ed | ||
|
2d7229d2b8 | ||
|
5ac2a404a4 | ||
|
11b37c15bd | ||
|
1d0038f17d | ||
|
619fa519c0 | ||
|
48469bd8ca | ||
|
24b2a0c14b | ||
|
a69234e715 | ||
|
c90d65a98d | ||
|
ca9aa50ad1 | ||
|
22616b0ea0 | ||
|
c13f9b0f21 | ||
|
ba123dfcdf | ||
|
aa16dfe59d | ||
|
82aa3c483c | ||
|
1f53f41d53 | ||
|
08119f9087 | ||
|
217026bd5d | ||
|
27a315fad5 | ||
|
3ad56ad304 | ||
|
9cb7c4907f | ||
|
4b3e664cee | ||
|
81d9584338 | ||
|
000f750d7c | ||
|
e644718b8a | ||
|
4acb5f624c | ||
|
6ee6671028 | ||
|
3d7b39f6ff | ||
|
f414d2d41e | ||
|
a2cf5eb9d7 | ||
|
27f8d4e463 | ||
|
207737fd61 | ||
|
d5b8a0d191 | ||
|
25c42a02c8 | ||
|
0ed5dc627a | ||
|
58a2cf4d0e | ||
|
3f9f78b823 | ||
|
79aeffed01 | ||
|
daab120d4c | ||
|
9d4d486dac | ||
|
9bbaa7cebd | ||
|
9d623dc11d | ||
|
4357db6a65 | ||
|
1e59be5f06 | ||
|
eb945f1c64 | ||
|
e07af01413 | ||
|
59e1449b2f | ||
|
9d217bdaf5 | ||
|
90ecefad85 | ||
|
f1bf2c612d | ||
|
e5590697aa | ||
|
5bb365c383 | ||
|
b09ee3ffc7 | ||
|
372e6f5f4f | ||
|
4c7affabd0 | ||
|
fba2dd3e6c | ||
|
e57a71a90b | ||
|
c7d3287432 | ||
|
4a9e125185 | ||
|
3014a9765f | ||
|
cf1e4e3a23 | ||
|
ff84b2d397 | ||
|
ddc45b9e09 | ||
|
7aa0bd7686 | ||
|
ad4c7531cb | ||
|
e679f0b9db | ||
|
a988bb91c7 | ||
|
6137cc25c7 | ||
|
e5f4bde59e | ||
|
f081ad2c43 | ||
|
087dc20091 | ||
|
9f805096d0 | ||
|
43b0b5b9e4 | ||
|
462b6ea279 | ||
|
e3ed3d3189 | ||
|
07be7804a6 | ||
|
915d533a2b | ||
|
7738cc3af0 | ||
|
59c25231ce |
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 = [
|
||||
|
Reference in New Issue
Block a user