forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: add new model provider PPIO (lobehub#6133)
* feat: add new model provider PPIO * feat: add usage docs; fix model configs * fix: fix ppio runtime; fix model configs * fix: fix default model list * fix * fix: fix locales providers.json --------- Co-authored-by: Jason <[email protected]> Co-authored-by: arvinxx <[email protected]>
- Loading branch information
1 parent
f472643
commit 23a3fda
Showing
25 changed files
with
1,107 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: Using PPIO API Key in LobeChat | ||
description: >- | ||
Learn how to integrate PPIO's language model APIs into LobeChat. Follow | ||
the steps to register, create an PPIO API key, configure settings, and | ||
chat with our various AI models. | ||
tags: | ||
- PPIO | ||
- DeepSeek | ||
- Llama | ||
- Qwen | ||
- uncensored | ||
- API key | ||
- Web UI | ||
--- | ||
|
||
# Using PPIO in LobeChat | ||
|
||
<Image alt={'Using PPIO in LobeChat'} cover src={''} /> | ||
|
||
[PPIO](https://ppinfra.com?utm_source=github_lobe-chat&utm_medium=github_readme&utm_campaign=link) supports stable and cost-efficient open-source LLM APIs, such as DeepSeek, Llama, Qwen etc. | ||
|
||
This document will guide you on how to integrate PPIO in LobeChat: | ||
|
||
<Steps> | ||
### Step 1: Register and Log in to PPIO | ||
|
||
- Visit [PPIO](https://ppinfra.com?utm_source=github_lobe-chat&utm_medium=github_readme&utm_campaign=link) and create an account | ||
- Upon registration, PPIO will provide a ¥5 credit (about 5M tokens). | ||
|
||
<Image alt={'Register PPIO'} height={457} inStep src={'https://github.com/user-attachments/assets/7cb3019b-78c1-48e0-a64c-a6a4836affd9'} /> | ||
|
||
### Step 2: Obtain the API Key | ||
|
||
- Visit PPIO's [key management page](https://ppinfra.com/settings/key-management), create and copy an API Key. | ||
|
||
<Image alt={'Obtain PPIO API key'} inStep src={'https://github.com/user-attachments/assets/5abcf21d-5a6c-4fc8-8de6-bc47d4d2fa98'} /> | ||
|
||
### Step 3: Configure PPIO in LobeChat | ||
|
||
- Visit the `Settings` interface in LobeChat | ||
- Find the setting for `PPIO` under `Language Model` | ||
|
||
<Image alt={'Enter PPIO API key in LobeChat'} inStep src={'https://github.com/user-attachments/assets/000d6a5b-f8d4-4fd5-84cd-31556c5c1efd'} /> | ||
|
||
- Open PPIO and enter the obtained API key | ||
- Choose a PPIO model for your assistant to start the conversation | ||
|
||
<Image alt={'Select and use PPIO model'} inStep src={'https://github.com/user-attachments/assets/207888f1-df21-4063-8e66-97b0d9cfa02e'} /> | ||
|
||
<Callout type={'warning'}> | ||
During usage, you may need to pay the API service provider, please refer to PPIO's [pricing | ||
policy](https://ppinfra.com/llm-api?utm_source=github_lobe-chat&utm_medium=github_readme&utm_campaign=link). | ||
</Callout> | ||
</Steps> | ||
|
||
You can now engage in conversations using the models provided by PPIO in LobeChat. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: 在 LobeChat 中使用 PPIO 派欧云 API Key | ||
description: >- | ||
学习如何将 PPIO 派欧云的 LLM API 集成到 LobeChat 中。跟随以下步骤注册 PPIO 账号、创建 API | ||
Key、并在 LobeChat 中进行设置。 | ||
tags: | ||
- PPIO | ||
- PPInfra | ||
- DeepSeek | ||
- Qwen | ||
- Llama3 | ||
- API key | ||
- Web UI | ||
--- | ||
|
||
# 在 LobeChat 中使用 PPIO 派欧云 | ||
|
||
<Image alt={'在 LobeChat 中使用 PPIO'} cover src={''} /> | ||
|
||
[PPIO 派欧云](https://ppinfra.com?utm_source=github_lobe-chat&utm_medium=github_readme&utm_campaign=link)提供稳定、高性价比的开源模型 API 服务,支持 DeepSeek 全系列、Llama、Qwen 等行业领先大模型。 | ||
|
||
本文档将指导你如何在 LobeChat 中使用 PPIO: | ||
|
||
<Steps> | ||
### 步骤一:注册 PPIO 派欧云账号并登录 | ||
|
||
- 访问 [PPIO 派欧云](https://ppinfra.com?utm_source=github_lobe-chat&utm_medium=github_readme&utm_campaign=link) 并注册账号 | ||
- 注册后,PPIO 会赠送 5 元(约 500 万 tokens)的使用额度 | ||
|
||
<Image alt={'注册 PPIO'} height={457} inStep src={'https://github.com/user-attachments/assets/7cb3019b-78c1-48e0-a64c-a6a4836affd9'} /> | ||
|
||
### 步骤二:创建 API 密钥 | ||
|
||
- 访问 PPIO 派欧云的 [密钥管理页面](https://ppinfra.com/settings/key-management) ,创建并且复制一个 API 密钥. | ||
|
||
<Image alt={'创建 PPIO API 密钥'} inStep src={'https://github.com/user-attachments/assets/5abcf21d-5a6c-4fc8-8de6-bc47d4d2fa98'} /> | ||
|
||
### 步骤三:在 LobeChat 中配置 PPIO 派欧云 | ||
|
||
- 访问 LobeChat 的 `设置` 界面 | ||
- 在 `语言模型` 下找到 `PPIO` 的设置项 | ||
- 打开 PPIO 并填入获得的 API 密钥 | ||
|
||
<Image alt={'在 LobeChat 中输入 PPIO API 密钥'} inStep src={'https://github.com/user-attachments/assets/4eaadac7-595c-41ad-a6e0-64c3105577d7'} /> | ||
|
||
- 为你的助手选择一个 Novita AI 模型即可开始对话 | ||
|
||
<Image alt={'选择并使用 PPIO 模型'} inStep src={'https://github.com/user-attachments/assets/8cf66e00-04fe-4bad-9e3d-35afc7d9aa58'} /> | ||
|
||
<Callout type={'warning'}> | ||
在使用过程中你可能需要向 API 服务提供商付费,PPIO 的 API 费用参考[这里](https://ppinfra.com/llm-api?utm_source=github_lobe-chat&utm_medium=github_readme&utm_campaign=link)。 | ||
</Callout> | ||
</Steps> | ||
|
||
至此你已经可以在 LobeChat 中使用 Novita AI 提供的模型进行对话了。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.