@lobehub/chat 0.142.7 → 0.142.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.142.8](https://github.com/lobehub/lobe-chat/compare/v0.142.7...v0.142.8)
6
+
7
+ <sup>Released on **2024-03-28**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix gemini 1.5 pro model id to support gemini new models.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix gemini 1.5 pro model id to support gemini new models, closes [#1776](https://github.com/lobehub/lobe-chat/issues/1776) ([591dcb3](https://github.com/lobehub/lobe-chat/commit/591dcb3))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ### [Version 0.142.7](https://github.com/lobehub/lobe-chat/compare/v0.142.6...v0.142.7)
6
31
 
7
32
  <sup>Released on **2024-03-27**</sup>
@@ -82,7 +82,7 @@ When using the `turn` mode, the API Keys will be retrieved in a round-robin mann
82
82
  - Type: Optional
83
83
  - Description: The API version of Azure, following the format YYYY-MM-DD
84
84
  - Default: `2023-08-01-preview`
85
- - Example: `2023-05-15`, refer to [latest version][azure-api-verion-url]
85
+ - Example: `2023-05-15`, refer to [latest version](https://docs.microsoft.com/zh-cn/azure/developer/javascript/api-reference/es-modules/azure-sdk/ai-translation/translationconfiguration?view=azure-node-latest#api-version)
86
86
 
87
87
  ## ZHIPU AI
88
88
 
@@ -195,5 +195,11 @@ When using the `turn` mode, the API Keys will be retrieved in a round-robin mann
195
195
  - Default: `-`
196
196
  - Example: `-all,+01-ai/yi-34b-chat,+huggingfaceh4/zephyr-7b-beta`
197
197
 
198
+ ## 01.AI
198
199
 
199
- [azure-api-verion-url]: https://docs.microsoft.com/zh-cn/azure/developer/javascript/api-reference/es-modules/azure-sdk/ai-translation/translationconfiguration?view=azure-node-latest#api-version
200
+ ### `ZEROONE_API_KEY`
201
+
202
+ - Type: Required
203
+ - Description: This is the API key you applied for in the 01.AI service
204
+ - Default: -
205
+ - 示例:`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
@@ -0,0 +1,21 @@
1
+ # Deploy LobeChat with Railway
2
+
3
+ If you want to deploy LobeChat on Railway, you can follow the steps below:
4
+
5
+ ## Railway Deployment Process
6
+
7
+ <Steps>
8
+ ### Prepare your OpenAI API Key
9
+
10
+ Go to [OpenAI API Key](https://platform.openai.com/account/api-keys) to get your OpenAI API Key.
11
+
12
+ ### Click the button below to deploy
13
+
14
+ [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/FB6HrV?referralCode=9bD9mT)
15
+
16
+ ### Once deployed, you can start using it
17
+
18
+ ### Bind a custom domain (optional)
19
+
20
+ You can use the subdomain provided by Railway, or choose to bind a custom domain. Currently, the domains provided by Railway have not been contaminated, and most regions can connect directly.
21
+ </Steps>
@@ -0,0 +1,21 @@
1
+ # 使用 Railway 部署
2
+
3
+ 如果想在 Railway 上部署 LobeChat,可以按照以下步骤进行操作:
4
+
5
+ ## Railway 部署流程
6
+
7
+ <Steps>
8
+ ### 准备好你的 OpenAI API Key
9
+
10
+ 前往 [OpenAI API Key](https://platform.openai.com/account/api-keys) 获取你的 OpenAI API Key
11
+
12
+ ### 点击下方按钮进行部署
13
+
14
+ [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/FB6HrV?referralCode=9bD9mT)
15
+
16
+ ### 部署完毕后,即可开始使用
17
+
18
+ ### 绑定自定义域名(可选)
19
+
20
+ 你可以使用 Railway 提供的子域名,也可以选择绑定自定义域名。目前 Railway 提供的域名还未被污染,大多数地区都可以直连。
21
+ </Steps>
@@ -6,4 +6,4 @@ Choose your favorite platform to get started.
6
6
 
7
7
  LobeChat support multiple deployment platforms, including Vercel, Docker, and Docker Compose and so on, you can choose the deployment platform that suits you.
8
8
 
9
- <PlatformCards docker={'Docker'} dockerCompose={'Docker Compose'} netlify={'Netlify'} repocloud={'RepoCloud'} sealos={'SealOS'} vercel={'Vercel'} zeabur={'Zeabur'} />
9
+ <PlatformCards docker={'Docker'} dockerCompose={'Docker Compose'} netlify={'Netlify'} railway={'Railway'} repocloud={'RepoCloud'} sealos={'SealOS'} vercel={'Vercel'} zeabur={'Zeabur'} />
@@ -10,6 +10,7 @@ LobeChat 支持多种部署平台,包括 Vercel、Docker 和 Docker Compose
10
10
  docker={'Docker 部署'}
11
11
  dockerCompose={'Docker Compose 部署'}
12
12
  netlify={'Netlify 部署'}
13
+ railway={'Railway 部署'}
13
14
  repocloud={'Repocloud 部署'}
14
15
  sealos={'SealOS 部署'}
15
16
  vercel={'Vercel 部署'}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.142.7",
3
+ "version": "0.142.8",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -2,11 +2,6 @@ import { ModelProviderCard } from '@/types/llm';
2
2
 
3
3
  const Google: ModelProviderCard = {
4
4
  chatModels: [
5
- {
6
- displayName: 'Gemini 1.5 Pro',
7
- id: 'gemini-1.5-pro',
8
- tokens: 1_048_576,
9
- },
10
5
  {
11
6
  displayName: 'Gemini Pro',
12
7
  id: 'gemini-pro',
@@ -18,6 +13,16 @@ const Google: ModelProviderCard = {
18
13
  tokens: 12_288,
19
14
  vision: true,
20
15
  },
16
+ {
17
+ displayName: 'Gemini 1.5 Pro',
18
+ id: 'gemini-1.5-pro-latest',
19
+ tokens: 1_048_576,
20
+ },
21
+ {
22
+ displayName: 'Gemini Ultra',
23
+ id: 'gemini-ultra-latest',
24
+ tokens: 30_720,
25
+ },
21
26
  ],
22
27
  id: 'google',
23
28
  };