diff --git a/README.md b/README.md index 91c857f1f..cba9d35fb 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ One-Click to get well-designed cross-platform ChatGPT web UI. - [x] 预制角色:使用预制角色快速定制新对话 [#993](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/993) - [x] 分享为图片,分享到 ShareGPT 链接 [#1741](https://github.com/Yidadaa/ChatGPT-Next-Web/pull/1741) - [x] 使用 tauri 打包桌面应用 -- [x] 支持自部署的大语言模型:开箱即用 [RWKV-Runner](https://github.com/josStorer/RWKV-Runner) ,服务端部署 [LocalAI 项目](https://github.com/go-skynet/LocalAI) llama / gpt4all / rwkv / vicuna / koala / gpt4all-j / cerebras / falcon / dolly 等等 +- [x] 支持自部署的大语言模型:开箱即用 [RWKV-Runner](https://github.com/josStorer/RWKV-Runner) ,服务端部署 [LocalAI 项目](https://github.com/go-skynet/LocalAI) llama / gpt4all / rwkv / vicuna / koala / gpt4all-j / cerebras / falcon / dolly 等等,或者使用 [api-for-open-llm](https://github.com/xusenlinzy/api-for-open-llm) - [ ] 插件机制,支持联网搜索、计算器、调用其他平台 api [#165](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/165) ## 最新动态 @@ -294,6 +294,7 @@ bash <(curl -s https://raw.githubusercontent.com/Yidadaa/ChatGPT-Next-Web/main/s [@Sha1rholder](https://github.com/Sha1rholder) [@AnsonHyq](https://github.com/AnsonHyq) [@synwith](https://github.com/synwith) +[@piksonGit](https://github.com/piksonGit) ### Contributor diff --git a/app/client/platforms/openai.ts b/app/client/platforms/openai.ts index 3384aeefb..7e44909e4 100644 --- a/app/client/platforms/openai.ts +++ b/app/client/platforms/openai.ts @@ -254,13 +254,15 @@ export class ChatGPTApi implements LLMApi { }); const resJson = (await res.json()) as OpenAIListModelResponse; - const chatModels = resJson.data.filter((m) => m.id.startsWith("gpt-")); + const chatModels = resJson.data?.filter((m) => m.id.startsWith("gpt-")); console.log("[Models]", chatModels); - return chatModels.map((m) => ({ - name: m.id, - available: true, - })); + return ( + chatModels?.map((m) => ({ + name: m.id, + available: true, + })) || [] + ); } } export { OpenaiPath }; diff --git a/app/components/ui-lib.module.scss b/app/components/ui-lib.module.scss index 6e8b64e81..67faabbe3 100644 --- a/app/components/ui-lib.module.scss +++ b/app/components/ui-lib.module.scss @@ -282,6 +282,7 @@ display: flex; align-items: center; justify-content: center; + z-index: 999; &-content { .list {