Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/lobehub/lobe-chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanyutin753 committed Aug 14, 2024
2 parents 6b3922a + 660bcc7 commit 719170e
Show file tree
Hide file tree
Showing 29 changed files with 583 additions and 36 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ OPENAI_API_KEY=sk-xxxxxxxxx

# QWEN_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

### SiliconCloud AI ####

# SILICONCLOUD_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

########################################
############ Market Service ############
########################################
Expand Down
151 changes: 151 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,157 @@

# Changelog

### [Version 1.10.1](https://github.com/lobehub/lobe-chat/compare/v1.10.0...v1.10.1)

<sup>Released on **2024-08-14**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

## [Version 1.10.0](https://github.com/lobehub/lobe-chat/compare/v1.9.8...v1.10.0)

<sup>Released on **2024-08-14**</sup>

#### ✨ Features

- **misc**: Add SiliconCloud model provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

- **misc**: Add SiliconCloud model provider, closes [#3092](https://github.com/lobehub/lobe-chat/issues/3092) ([0781dc5](https://github.com/lobehub/lobe-chat/commit/0781dc5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.9.8](https://github.com/lobehub/lobe-chat/compare/v1.9.7...v1.9.8)

<sup>Released on **2024-08-13**</sup>

#### 💄 Styles

- **misc**: Resize the image size in chat message.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

- **misc**: Resize the image size in chat message, closes [#3462](https://github.com/lobehub/lobe-chat/issues/3462) ([37c7429](https://github.com/lobehub/lobe-chat/commit/37c7429))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.9.7](https://github.com/lobehub/lobe-chat/compare/v1.9.6...v1.9.7)

<sup>Released on **2024-08-13**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.9.6](https://github.com/lobehub/lobe-chat/compare/v1.9.5...v1.9.6)

<sup>Released on **2024-08-09**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.9.5](https://github.com/lobehub/lobe-chat/compare/v1.9.4...v1.9.5)

<sup>Released on **2024-08-08**</sup>

#### 💄 Styles

- **misc**: Updated AWS bedrock model list.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

- **misc**: Updated AWS bedrock model list, closes [#3315](https://github.com/lobehub/lobe-chat/issues/3315) ([042f2d3](https://github.com/lobehub/lobe-chat/commit/042f2d3))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.9.4](https://github.com/lobehub/lobe-chat/compare/v1.9.3...v1.9.4)

<sup>Released on **2024-08-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix import clerk `AuthObject` from public api.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- **misc**: Fix import clerk `AuthObject` from public api, closes [#3416](https://github.com/lobehub/lobe-chat/issues/3416) ([af8960d](https://github.com/lobehub/lobe-chat/commit/af8960d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.9.3](https://github.com/lobehub/lobe-chat/compare/v1.9.2...v1.9.3)

<sup>Released on **2024-08-06**</sup>
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ RUN \
if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
sed -i "s/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g" "/etc/apk/repositories"; \
fi \
# Add proxychains-ng package & update base package
# Add required package & update base package
&& apk update \
&& apk add --no-cache proxychains-ng \
&& apk add --no-cache bind-tools proxychains-ng \
&& apk upgrade --no-cache \
# Add user nextjs to run the app
&& addgroup --system --gid 1001 nodejs \
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,14 @@ In addition, these plugins are not limited to news aggregation, but can also ext
<!-- PLUGIN LIST -->

| Recent Submits | Description |
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [Shopping tools](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **shoppingtools** on **2024-07-19**</sup> | Search for products on eBay & AliExpress, find eBay events & coupons. Get prompt examples.<br/>`shopping` `e-bay` `ali-express` `coupons` |
| [Savvy Trader AI](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **savvytrader** on **2024-06-27**</sup> | Realtime stock, crypto and other investment data.<br/>`stock` `analyze` |
| [Social Search](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **say-apps** on **2024-06-02**</sup> | The Social Search provides access to tweets, users, followers, images, media and more.<br/>`social` `twitter` `x` `search` |
| [Space](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **automateyournetwork** on **2024-05-12**</sup> | Space data including NASA.<br/>`space` `nasa` |

> 📊 Total plugins: [<kbd>**52**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
| Recent Submits | Description |
| ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [Tongyi wanxiang Image Generator](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **YoungTx** on **2024-08-09**</sup> | This plugin uses Alibaba's Tongyi Wanxiang model to generate images based on text prompts.<br/>`image` `tongyi` `wanxiang` |
| [Shopping tools](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **shoppingtools** on **2024-07-19**</sup> | Search for products on eBay & AliExpress, find eBay events & coupons. Get prompt examples.<br/>`shopping` `e-bay` `ali-express` `coupons` |
| [Savvy Trader AI](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **savvytrader** on **2024-06-27**</sup> | Realtime stock, crypto and other investment data.<br/>`stock` `analyze` |
| [Social Search](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **say-apps** on **2024-06-02**</sup> | The Social Search provides access to tweets, users, followers, images, media and more.<br/>`social` `twitter` `x` `search` |

> 📊 Total plugins: [<kbd>**51**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
<!-- PLUGIN LIST -->

Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地

| 最近新增 | 插件描述 |
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [通义万象图像生成器](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **YoungTx** on **2024-08-09**</sup> | 此插件使用阿里巴巴的通义万象模型根据文本提示生成图像。<br/>`图像` `通义` `万象` |
| [购物工具](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **shoppingtools** on **2024-07-19**</sup> | 在 eBay 和 AliExpress 上搜索产品,查找 eBay 活动和优惠券。获取快速示例。<br/>`购物` `e-bay` `ali-express` `优惠券` |
| [Savvy Trader AI](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **savvytrader** on **2024-06-27**</sup> | 实时股票、加密货币和其他投资数据。<br/>`股票` `分析` |
| [社交搜索](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **say-apps** on **2024-06-02**</sup> | 社交搜索提供访问推文、用户、关注者、图片、媒体等功能。<br/>`社交` `推特` `x` `搜索` |
| [空间](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **automateyournetwork** on **2024-05-12**</sup> | 包括 NASA 的空间数据。<br/>`空间` `nasa` |

> 📊 Total plugins: [<kbd>**52**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
> 📊 Total plugins: [<kbd>**51**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
<!-- PLUGIN LIST -->

Expand Down
52 changes: 51 additions & 1 deletion docs/self-hosting/server-database/zeabur.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,55 @@ tags:

# Deploying LobeChat Database on Zeabur

TODO
<Callout type="info">
This article assumes that you are familiar with the basic principles and processes of deploying the LobeChat server database version, so it only includes content related to core environment variable configuration. If you are not familiar with the deployment principles of the LobeChat server database version, please refer to [Deploying Server Database](/en/docs/self-hosting/server-database) first.
</Callout>

If you want to deploy LobeChat Database on Zeabur, you can follow the steps below:

## Create an Auth0 Account for Authentication

The [template for LobeChat Database on Zeabur](https://zeabur.com/templates/RRSPSD) uses NextAuth and Auth0 as auth provider, so you need to create an Auth0 account to get the required credentials.

You can refer to the [Auth0 documentation](/en/docs/self-hosting/advanced/auth/next-auth/auth0) to a detailed guide on how to create an Auth0 account and get those credentials.

## Deploying on Zeabur

Here is the process for deploying the LobeChat server database version on Zeabur:

<Steps>

### Go to the template page on Zeabur

Go to the [LobeChat Database template page](https://zeabur.com/templates/RRSPSD) on Zeabur and click on the "Deploy" button.

### Fill in the required environment variables

After you click on the "Deploy" button, you will see a modal pop-up where you can fill in the required environment variables.

Here are the environment variables you need to fill in:

- OpenAI API key: Your OpenAI API key to get responses from OpenAI.
- Auth0 Client ID: Your Auth0 client ID.
- Auth0 Client Secret: Your Auth0 client secret.
- Auth0 Domain: Your Auth0 domain(without https:// prefix).
- LobeChat Domain: A free subdomain with `.zeabur.app` suffix.
- MinIO Public Domain: A free subdomain with `.zeabur.app` suffix for yout MinIO web port to enable public access for the uploaded files.

### Select a region and deploy

After you fill all the required environment variables, select a region where you want to deploy your LobeChat Database and click on the "Deploy" button.

You will see another modal pop-up where you can see the deployment progress.

### Access your LobeChat Database

Once the deployment is done, you will be navigated automatically to your project just created on Zeabur Dashboard.

You can see three services running: `LobeChat-Database`, `MinIO`, and `PostgreSQL`.

Press on the `LobeChat-Database` and you can see the public domain you just created, click on it to access your LobeChat Database.

You can also bind a custom domain for your services if you want, here is a guide on how to [bind a custom domain on Zeabur](https://zeabur.com/docs/deploy/domain-binding).

</Steps>
54 changes: 53 additions & 1 deletion docs/self-hosting/server-database/zeabur.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,56 @@ tags:

# 使用 Zeabur 部署 LobeChat 数据库版

TODO
<Callout type="info">
本文假设你已经熟悉 LobeChat 服务器数据库版的部署基本原理和流程,因此只包含与核心环境变量配置相关的内容。如果你对 LobeChat 服务器数据库版的部署原理不熟悉,请先参考[部署服务器数据库](/en/docs/self-hosting/server-database)
</Callout>

如果你想在 Zeabur 上部署 LobeChat 数据库版,可以按照以下步骤操作:

## Create an Auth0 Account for Authentication
## 创建 Auth0 账户以进行身份验证

[在 Zeabur 上的 LobeChat 数据库模板](https://zeabur.com/templates/RRSPSD) 使用 NextAuth 和 Auth0 作为身份验证提供者,因此你需要创建一个 Auth0 账户以获取所需的凭证。

你可以参考[Auth0 文档](/en/docs/self-hosting/advanced/auth/next-auth/auth0)获取关于如何创建 Auth0 账户和获取凭证的详细指南。

## 在 Zeabur 上部署

这里是在 Zeabur 上部署 LobeChat 服务器数据库版的流程:

<Steps>

### 前往 Zeabur 上的模板页面

前往 [Zeabur 上的 LobeChat 数据库模板页面](https://zeabur.com/templates/RRSPSD) 并点击 "Deploy" 按钮。

### 填写必要的环境变量

在你点击“部署“按钮后,你会看到一个模态弹窗,你可以在这里填写必要的环境变量。

以下是你需要填写的环境变量:

- OpenAI API key: 你的 OpenAI API key 用于获取模型的访问权限。
- Auth0 Client ID: 你的 Auth0 客户端 ID 。
- Auth0 Client Secret: 你的 Auth0 客户端 secret 。
- Auth0 Domain: 你的 Auth0 域名(不需要 https:// 前缀) 。
- LobeChat Domain: 一个免费的 `.zeabur.app` 后缀的域名。
- MinIO Public Domain: 一个免费的 `.zeabur.app` 后缀的域名为了暴露 MinIO 服务以公开访问资源。

### 选择一个区域并部署

在你填写完所有必要的环境变量后,选择一个你想要部署 LobeChat 数据库的区域并点击“部署”按钮。

你会看到另一个模态弹窗,你可以在这里看到部署的进度。

### 访问你的 LobeChat 数据库版本

当部署完成后,你会被自动导航到你在 Zeabur 控制台上刚刚创建的项目。

你会看到三个服务正在运行:`LobeChat-Database``MinIO``PostgreSQL`

按下 `LobeChat-Database` 你会看到你刚刚创建的公共域名,点击它以访问你的 LobeChat 数据库。

你可以选择绑定一个自定义域名,这里有一个关于如何在 Zeabur 上[绑定自定义域名](https://zeabur.com/docs/deploy/domain-binding)的指南。

</Steps>
46 changes: 46 additions & 0 deletions docs/usage/providers/siliconcloud.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
title: Using SiliconCloud API Key in LobeChat
description: Learn how to configure and use SiliconCloud's large language models in LobeChat, get your API key, and start chatting.
tags:
- LobeChat
- SiliconCloud
- API Key
- Web UI
---

# Using SiliconCloud in LobeChat


[SiliconCloud](https://siliconflow.cn/zh-cn/siliconcloud) is a cost-effective large model service provider, offering various services such as text generation and image generation.

This document will guide you on how to use SiliconCloud in LobeChat:

<Steps>

### Step 1: Get your SiliconCloud API Key

- First, you need to register and log in to [SiliconCloud](https://cloud.siliconflow.cn/auth/login)

<Callout type={'info'}>Currently, new users can get 14 yuan free credit upon registration</Callout>

- Go to the `API Key` menu and click `Create New API Key`

- Click copy API key and keep it safe

### Step 2: Configure SiliconCloud in LobeChat

- Visit the `App Settings` interface of LobeChat

- Under `Language Model`, find the `SiliconCloud` settings

- Enable SiliconCloud and enter the obtained API key

- Choose a SiliconCloud model for your assistant and start chatting

<Callout type={'warning'}>
You may need to pay the API service provider during use. Please refer to SiliconCloud's relevant fee policy.
</Callout>

</Steps>

Now you can use the models provided by SiliconCloud for conversation in LobeChat.
Loading

0 comments on commit 719170e

Please sign in to comment.