mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-17 15:33:41 +08:00
Compare commits
3 Commits
Leizhenpen
...
5843aac4f5
Author | SHA1 | Date | |
---|---|---|---|
|
5843aac4f5 | ||
|
bc53c17a8c | ||
|
16c16887ae |
11
README.md
11
README.md
@@ -40,12 +40,13 @@ English / [简体中文](./README_CN.md)
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
## 🥳 Cheer for NextChat iOS Version Online!
|
## 🥳 Cheer for DeepSeek, China's AI star!
|
||||||
> [ 👉 Click Here Install Now](https://apps.apple.com/us/app/nextchat-ai/id6743085599)
|
> Purpose-Built UI for DeepSeek Reasoner Model
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
|
<img src="https://github.com/user-attachments/assets/f3952210-3af1-4dc0-9b81-40eaa4847d9a"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 🫣 NextChat Support MCP !
|
## 🫣 NextChat Support MCP !
|
||||||
> Before build, please set env ENABLE_MCP=true
|
> Before build, please set env ENABLE_MCP=true
|
||||||
|
|
||||||
|
@@ -159,10 +159,10 @@ export const usePromptStore = createPersistStore(
|
|||||||
fetch(PROMPT_URL)
|
fetch(PROMPT_URL)
|
||||||
.then((res) => res.json())
|
.then((res) => res.json())
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
let fetchPrompts = [res.en, res.tw, res.cn];
|
const lang = getLang();
|
||||||
if (getLang() === "cn") {
|
const fetchPrompts = [res[lang], res.en, res.tw, res.cn].filter(
|
||||||
fetchPrompts = fetchPrompts.reverse();
|
Boolean,
|
||||||
}
|
);
|
||||||
const builtinPrompts = fetchPrompts.map((promptList: PromptList) => {
|
const builtinPrompts = fetchPrompts.map((promptList: PromptList) => {
|
||||||
return promptList.map(
|
return promptList.map(
|
||||||
([title, content]) =>
|
([title, content]) =>
|
||||||
@@ -180,8 +180,9 @@ export const usePromptStore = createPersistStore(
|
|||||||
const allPromptsForSearch = builtinPrompts
|
const allPromptsForSearch = builtinPrompts
|
||||||
.reduce((pre, cur) => pre.concat(cur), [])
|
.reduce((pre, cur) => pre.concat(cur), [])
|
||||||
.filter((v) => !!v.title && !!v.content);
|
.filter((v) => !!v.title && !!v.content);
|
||||||
SearchService.count.builtin =
|
SearchService.count.builtin = Object.values(res)
|
||||||
res.en.length + res.cn.length + res.tw.length;
|
.filter(Array.isArray)
|
||||||
|
.reduce((total, promptList) => total + promptList.length, 0);
|
||||||
SearchService.init(allPromptsForSearch, userPrompts);
|
SearchService.init(allPromptsForSearch, userPrompts);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user