mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-10-31 14:23:43 +08:00 
			
		
		
		
	Compare commits
	
		
			11 Commits
		
	
	
		
			feat/markd
			...
			d8b4dc9ad3
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | d8b4dc9ad3 | ||
|  | 3809375694 | ||
|  | 1b0de25986 | ||
|  | 865c45dd29 | ||
|  | 1f5d8e6d9c | ||
|  | c9ef6d58ed | ||
|  | 2d7229d2b8 | ||
|  | 11b37c15bd | ||
|  | 1d0038f17d | ||
|  | 619fa519c0 | ||
|  | febb38c991 | 
| @@ -22,7 +22,7 @@ English / [简体中文](./README_CN.md) | |||||||
| [![MacOS][MacOS-image]][download-url] | [![MacOS][MacOS-image]][download-url] | ||||||
| [![Linux][Linux-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 | [saas-url]: https://nextchat.club?utm_source=readme | ||||||
| @@ -40,11 +40,12 @@ English / [简体中文](./README_CN.md) | |||||||
|  |  | ||||||
| </div> | </div> | ||||||
|  |  | ||||||
| ## 🥳 Cheer for DeepSeek, China's AI star! | ## 🥳 Cheer for NextChat iOS Version Online! | ||||||
|  > Purpose-Built UI for DeepSeek Reasoner Model | > [👉 Click Here to Install Now](https://apps.apple.com/us/app/nextchat-ai/id6743085599) | ||||||
|  |  | ||||||
| <img src="https://github.com/user-attachments/assets/f3952210-3af1-4dc0-9b81-40eaa4847d9a"/> | > [❤️ Source Code Coming Soon](https://github.com/ChatGPTNextWeb/NextChat-iOS) | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   |   | ||||||
| ## 🫣 NextChat Support MCP  !  | ## 🫣 NextChat Support MCP  !  | ||||||
|   | |||||||
| @@ -198,7 +198,8 @@ export class ChatGPTApi implements LLMApi { | |||||||
|     const isDalle3 = _isDalle3(options.config.model); |     const isDalle3 = _isDalle3(options.config.model); | ||||||
|     const isO1OrO3 = |     const isO1OrO3 = | ||||||
|       options.config.model.startsWith("o1") || |       options.config.model.startsWith("o1") || | ||||||
|       options.config.model.startsWith("o3"); |       options.config.model.startsWith("o3") || | ||||||
|  |       options.config.model.startsWith("o4-mini"); | ||||||
|     if (isDalle3) { |     if (isDalle3) { | ||||||
|       const prompt = getMessageTextContent( |       const prompt = getMessageTextContent( | ||||||
|         options.messages.slice(-1)?.pop() as any, |         options.messages.slice(-1)?.pop() as any, | ||||||
| @@ -243,7 +244,7 @@ export class ChatGPTApi implements LLMApi { | |||||||
|       } |       } | ||||||
|  |  | ||||||
|       // add max_tokens to vision model |       // add max_tokens to vision model | ||||||
|       if (visionModel) { |       if (visionModel && !isO1OrO3) { | ||||||
|         requestPayload["max_tokens"] = Math.max(modelConfig.max_tokens, 4000); |         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": "2023-12", | ||||||
|   "gpt-4-turbo-2024-04-09": "2023-12", |   "gpt-4-turbo-2024-04-09": "2023-12", | ||||||
|   "gpt-4-turbo-preview": "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": "2023-10", | ||||||
|   "gpt-4o-2024-05-13": "2023-10", |   "gpt-4o-2024-05-13": "2023-10", | ||||||
|   "gpt-4o-2024-08-06": "2023-10", |   "gpt-4o-2024-08-06": "2023-10", | ||||||
| @@ -458,6 +466,7 @@ export const DEFAULT_TTS_VOICES = [ | |||||||
| export const VISION_MODEL_REGEXES = [ | export const VISION_MODEL_REGEXES = [ | ||||||
|   /vision/, |   /vision/, | ||||||
|   /gpt-4o/, |   /gpt-4o/, | ||||||
|  |   /gpt-4\.1/, | ||||||
|   /claude-3/, |   /claude-3/, | ||||||
|   /gemini-1\.5/, |   /gemini-1\.5/, | ||||||
|   /gemini-exp/, |   /gemini-exp/, | ||||||
| @@ -469,6 +478,8 @@ export const VISION_MODEL_REGEXES = [ | |||||||
|   /^dall-e-3$/, // Matches exactly "dall-e-3" |   /^dall-e-3$/, // Matches exactly "dall-e-3" | ||||||
|   /glm-4v/, |   /glm-4v/, | ||||||
|   /vl/i, |   /vl/i, | ||||||
|  |   /o3/, | ||||||
|  |   /o4-mini/, | ||||||
| ]; | ]; | ||||||
|  |  | ||||||
| export const EXCLUDE_VISION_MODEL_REGEXES = [/claude-3-5-haiku-20241022/]; | export const EXCLUDE_VISION_MODEL_REGEXES = [/claude-3-5-haiku-20241022/]; | ||||||
| @@ -485,6 +496,14 @@ const openaiModels = [ | |||||||
|   "gpt-4-32k-0613", |   "gpt-4-32k-0613", | ||||||
|   "gpt-4-turbo", |   "gpt-4-turbo", | ||||||
|   "gpt-4-turbo-preview", |   "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", | ||||||
|   "gpt-4o-2024-05-13", |   "gpt-4o-2024-05-13", | ||||||
|   "gpt-4o-2024-08-06", |   "gpt-4o-2024-08-06", | ||||||
| @@ -499,6 +518,8 @@ const openaiModels = [ | |||||||
|   "o1-mini", |   "o1-mini", | ||||||
|   "o1-preview", |   "o1-preview", | ||||||
|   "o3-mini", |   "o3-mini", | ||||||
|  |   "o3", | ||||||
|  |   "o4-mini", | ||||||
| ]; | ]; | ||||||
|  |  | ||||||
| const googleModels = [ | const googleModels = [ | ||||||
|   | |||||||
| @@ -1202,9 +1202,9 @@ | |||||||
|   integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== |   integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== | ||||||
|  |  | ||||||
| "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": | "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2": | ||||||
|   version "7.25.0" |   version "7.26.10" | ||||||
|   resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.25.0.tgz#3af9a91c1b739c569d5d80cc917280919c544ecb" |   resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.10.tgz#a07b4d8fa27af131a633d7b3524db803eb4764c2" | ||||||
|   integrity sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw== |   integrity sha512-2WJMeRQPHKSPemqk/awGrAiuFfzBmOIPXKizAsVhWH9YJqLZ0H+HS4c8loHGgW6utJ3E/ejXQUsiGaQy2NZ9Fw== | ||||||
|   dependencies: |   dependencies: | ||||||
|     regenerator-runtime "^0.14.0" |     regenerator-runtime "^0.14.0" | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user