From 420f51752d5c5293f68f4e68a640d248168b4e8d Mon Sep 17 00:00:00 2001 From: Blair Chen Date: Sat, 5 Oct 2024 21:52:16 +0800 Subject: [PATCH] Update @radix-ui/themes to v3 (#63) --- README.md | 12 +- README.zh-CN.md | 12 +- app/chat/PersonaModal.tsx | 2 +- app/chat/PersonaPanel.tsx | 19 +- app/layout.tsx | 2 +- components/Chat/ChatSideBar.tsx | 6 +- components/Chat/index.scss | 3 +- components/Link.tsx | 5 +- package-lock.json | 1437 +++++++++++++++---------------- package.json | 36 +- tsconfig.json | 1 - 11 files changed, 765 insertions(+), 770 deletions(-) diff --git a/README.md b/README.md index 570e3e5..1ea2399 100644 --- a/README.md +++ b/README.md @@ -79,16 +79,16 @@ For OpenAI account: | Name | Description | Default Value | | ------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------ | | OPENAI_API_BASE_URL | Use if you plan to use a reverse proxy for `api.openai.com`. | `https://api.openai.com` | -| OPENAI_API_KEY | Secret key string obtained from the [OpenAI API website](https://platform.openai.com/account/api-keys). | +| OPENAI_API_KEY | Secret key string obtained from the [OpenAI API website](https://platform.openai.com/account/api-keys). | | | OPENAI_MODEL | Model of GPT used | `gpt-3.5-turbo` | For Azure OpenAI account: -| Name | Description | -| ------------------------- | ---------------------------------------------- | -| AZURE_OPENAI_API_BASE_URL | Endpoint (e.g., https://xxx.openai.azure.com). | -| AZURE_OPENAI_API_KEY | Key | -| AZURE_OPENAI_DEPLOYMENT | Model deployment name | +| Name | Description | +| ------------------------- | ------------------------------------------------ | +| AZURE_OPENAI_API_BASE_URL | Endpoint (e.g., ). | +| AZURE_OPENAI_API_KEY | Key | +| AZURE_OPENAI_DEPLOYMENT | Model deployment name | ## Contribution diff --git a/README.zh-CN.md b/README.zh-CN.md index 4eceb68..02bc91c 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -79,16 +79,16 @@ OpenAI账户环境变量: | 名称 | 描述 | 默认值 | | ------------------- | ---------------------------------------------------------------------------------- | ------------------------ | | OPENAI_API_BASE_URL | 如需为`api.openai.com`使用反向代理,请使用此变量。 | `https://api.openai.com` | -| OPENAI_API_KEY | 从[OpenAI API网站](https://platform.openai.com/account/api-keys)获取的密钥字符串。 | +| OPENAI_API_KEY | 从[OpenAI API网站](https://platform.openai.com/account/api-keys)获取的密钥字符串。 | | | OPENAI_MODEL | GPT模型 | `gpt-3.5-turbo` | Azure OpenAI账户环境变量: -| 名称 | 描述 | -| ------------------------- | ------------------------------------------ | -| AZURE_OPENAI_API_BASE_URL | 端点(如,https://xxx.openai.azure.com)。 | -| AZURE_OPENAI_API_KEY | 密钥 | -| AZURE_OPENAI_DEPLOYMENT | 模型部署名称 | +| 名称 | 描述 | +| ------------------------- | -------------------------------------------- | +| AZURE_OPENAI_API_BASE_URL | 端点(如, | +| AZURE_OPENAI_API_KEY | 密钥 | +| AZURE_OPENAI_DEPLOYMENT | 模型部署名称 | ## 贡献 diff --git a/app/chat/PersonaModal.tsx b/app/chat/PersonaModal.tsx index 400bde2..e7a75dd 100644 --- a/app/chat/PersonaModal.tsx +++ b/app/chat/PersonaModal.tsx @@ -31,7 +31,7 @@ const PersonaModal = () => {
- +