From 6653a31eb7e97d88affe88e3b58844632052e678 Mon Sep 17 00:00:00 2001 From: guochao <463561248@qq.com> Date: Thu, 6 Jul 2023 20:00:30 +0800 Subject: [PATCH 1/3] =?UTF-8?q?perf:=20=20models=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E7=9A=84=E5=AE=B9=E9=94=99?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/client/platforms/openai.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 }; From c10e8382a9a5530e12e0ba14471bc4e81b3145fd Mon Sep 17 00:00:00 2001 From: PaRaD1SE98 Date: Fri, 7 Jul 2023 04:15:05 +0900 Subject: [PATCH 2/3] fix: selector z-index bug --- app/components/ui-lib.module.scss | 1 + 1 file changed, 1 insertion(+) 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 { From 3432d4df29d3c289b4f8e1cbcdf41cda9f43d6ba Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Fri, 7 Jul 2023 17:57:53 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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