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.
💄 style: Add new model provider Novita AI (lobehub#3177)
- Loading branch information
Showing
19 changed files
with
579 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
title: Using Novita AI API Key in LobeChat | ||
description: >- | ||
Learn how to integrate Novita AI's language model APIs into LobeChat. Follow the steps to register, create an Novita AI API key, | ||
configure settings, and chat with our various AI models. | ||
tags: | ||
- Novita AI | ||
- Llama3 | ||
- Mistral | ||
- uncensored | ||
- API key | ||
- Web UI | ||
--- | ||
|
||
# Using Novita AI in LobeChat | ||
|
||
<Image | ||
alt={'Using Novita AI in LobeChat'} | ||
cover | ||
src={'https://github.com/user-attachments/assets/b2b36128-6a43-4a1f-9c08-99fe73fb565f'} | ||
/> | ||
|
||
[Novita AI](https://novita.ai/) is an AI API platform that provides a variety of LLM and image generation APIs, supporting Llama3 (8B, 70B), Mistral, and many other cutting-edge models. We offer a variety of censored and uncensored models to meet your different needs. | ||
|
||
This document will guide you on how to integrate Novita AI in LobeChat: | ||
|
||
<Steps> | ||
|
||
### Step 1: Register and Log in to Novita AI | ||
|
||
- Visit [Novita.ai](https://novita.ai/) and create an account | ||
- You can log in with your Google or Github account | ||
- Upon registration, Novita AI will provide a $0.5 credit. | ||
|
||
<Image | ||
alt={'Register OpenRouter'} | ||
height={457} | ||
inStep | ||
src={'https://github.com/user-attachments/assets/f3177ce2-281c-4ed4-a061-239547b466c6'} | ||
/> | ||
|
||
### Step 2: Obtain the API Key | ||
|
||
- Visit Novita AI's [key management page](https://novita.ai/dashboard/key), create and copy an API Key. | ||
|
||
<Image | ||
alt={'Obtain Novita AI API key'} | ||
inStep | ||
src={'https://github.com/user-attachments/assets/1e33aff2-6186-4e1f-80a8-4a2c855d8cc1'} | ||
/> | ||
|
||
### Step 3: Configure Novita AI in LobeChat | ||
|
||
- Visit the `Settings` interface in LobeChat | ||
- Find the setting for `novita.ai` under `Language Model` | ||
|
||
<Image | ||
alt={'Enter Novita AI API key in LobeChat'} | ||
inStep | ||
src={'https://github.com/user-attachments/assets/00c02637-873e-4e7e-9dc3-a95085b16dd7'} | ||
/> | ||
|
||
- Open novita.ai and enter the obtained API key | ||
- Choose a Novita AI model for your assistant to start the conversation | ||
|
||
<Image | ||
alt={'Select and use Novita AI model'} | ||
inStep | ||
src={'https://github.com/user-attachments/assets/6f9f400a-72e0-49de-94cb-5069fddf1163'} | ||
/> | ||
|
||
<Callout type={'warning'}> | ||
During usage, you may need to pay the API service provider, please refer to Novita AI's pricing | ||
policy. | ||
</Callout> | ||
|
||
</Steps> | ||
|
||
You can now engage in conversations using the models provided by Novita AI 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,76 @@ | ||
--- | ||
title: 在 LobeChat 中使用 Novita AI API Key | ||
description: 学习如何将 Novita AI 的大语言模型 API 集成到 LobeChat 中。跟随以下步骤注册 Novita AI 账号、创建 API Key、充值信用额度并在 LobeChat 中进行设置。并与我们的多种 AI 模型交谈。 | ||
tags: | ||
- Novita AI | ||
- Llama3 | ||
- Mistral | ||
- uncensored | ||
- API key | ||
- Web UI | ||
--- | ||
|
||
# 在 LobeChat 中使用 Novita AI | ||
|
||
<Image | ||
alt={'在 LobeChat 中使用 Novita AI'} | ||
cover | ||
src={'https://github.com/user-attachments/assets/b2b36128-6a43-4a1f-9c08-99fe73fb565f'} | ||
/> | ||
|
||
[Novita AI](https://novita.ai/) 是一个 AI API 平台,它提供多种大语言模型与 AI 图像生成的 API 服务。支持 Llama3 (8B, 70B),Mistral 和其他最新的模型。 | ||
|
||
本文档将指导你如何在 LobeChat 中使用 Novita AI: | ||
|
||
<Steps> | ||
|
||
### 步骤一:注册 Novita AI 账号并登录 | ||
|
||
- 访问 [Novita.ai](https://novita.ai/) 并创建账号 | ||
- 你可以使用 Google 或者 Github 账号登录 | ||
- 注册后,Novita AI 会赠送 0.5 美元的使用额度 | ||
|
||
<Image | ||
alt={'注册 Novita AI'} | ||
height={457} | ||
inStep | ||
src={'https://github.com/user-attachments/assets/f3177ce2-281c-4ed4-a061-239547b466c6'} | ||
/> | ||
|
||
### 步骤二:创建 API 密钥 | ||
|
||
- 访问 Novita AI 的 [密钥管理页面](https://novita.ai/dashboard/key) ,创建并且复制一个 API 密钥. | ||
|
||
<Image | ||
alt={'创建 Novita AI API 密钥'} | ||
inStep | ||
src={'https://github.com/user-attachments/assets/1e33aff2-6186-4e1f-80a8-4a2c855d8cc1'} | ||
/> | ||
|
||
### 步骤三:在 LobeChat 中配置 Novita AI | ||
|
||
- 访问 LobeChat 的 `设置` 界面 | ||
- 在 `语言模型` 下找到 `novita.ai` 的设置项 | ||
- 打开 novita.ai 并填入获得的 API 密钥 | ||
|
||
<Image | ||
alt={'在 LobeChat 中输入 Novita AI API 密钥'} | ||
inStep | ||
src={'https://github.com/user-attachments/assets/00c02637-873e-4e7e-9dc3-a95085b16dd7'} | ||
/> | ||
|
||
- 为你的助手选择一个 Novita AI 模型即可开始对话 | ||
|
||
<Image | ||
alt={'Select and use Novita AI model'} | ||
inStep | ||
src={'https://github.com/user-attachments/assets/6f9f400a-72e0-49de-94cb-5069fddf1163'} | ||
/> | ||
|
||
<Callout type={'warning'}> | ||
在使用过程中你可能需要向 API 服务提供商付费,请参考 Novita AI 的相关费用政策。 | ||
</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
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,91 @@ | ||
import { ModelProviderCard } from '@/types/llm'; | ||
|
||
const Novita: ModelProviderCard = { | ||
chatModels: [ | ||
{ | ||
displayName: 'Llama3 8B Instruct', | ||
enabled: true, | ||
id: 'meta-llama/llama-3-8b-instruct', | ||
tokens: 8192, | ||
}, | ||
{ | ||
displayName: 'Llama3 70B Instruct', | ||
enabled: true, | ||
id: 'meta-llama/llama-3-70b-instruct', | ||
tokens: 8192, | ||
}, | ||
{ | ||
displayName: 'Nous Hermes 2 Pro - Llama3 8B', | ||
enabled: true, | ||
id: 'nousresearch/hermes-2-pro-llama-3-8b', | ||
tokens: 8192, | ||
}, | ||
{ | ||
displayName: 'Nous Hermes - Llama2 8B', | ||
enabled: true, | ||
id: 'nousresearch/nous-hermes-llama2-13b', | ||
tokens: 4096, | ||
}, | ||
{ | ||
displayName: 'Mistral 7B Instruct', | ||
enabled: true, | ||
id: 'mistralai/mistral-7b-instruct', | ||
tokens: 32_768, | ||
}, | ||
{ | ||
displayName: 'Dolphin Mixtral 8x22B', | ||
enabled: true, | ||
id: 'cognitivecomputations/dolphin-mixtral-8x22b', | ||
tokens: 16_000, | ||
}, | ||
{ | ||
displayName: 'L3-70b-Euryale-v2.1', | ||
enabled: true, | ||
id: 'sao10k/l3-70b-euryale-v2.1', | ||
tokens: 16_000, | ||
}, | ||
{ | ||
displayName: 'Midnight Rose 70B', | ||
enabled: true, | ||
id: 'sophosympatheia/midnight-rose-70b', | ||
tokens: 4096, | ||
}, | ||
{ | ||
displayName: 'Mythomax L2 13b', | ||
enabled: true, | ||
id: 'gryphe/mythomax-l2-13b', | ||
tokens: 4096, | ||
}, | ||
{ | ||
displayName: 'Nous Hermes 2 - Mixtral 8x7B-DPO', | ||
enabled: true, | ||
id: 'Nous-Hermes-2-Mixtral-8x7B-DPO', | ||
tokens: 32_768, | ||
}, | ||
{ | ||
displayName: 'Lzlv 70b', | ||
enabled: true, | ||
id: 'lzlv_70b', | ||
tokens: 4096, | ||
}, | ||
{ | ||
displayName: 'Open Hermes 2.5 Mistral 7B', | ||
enabled: true, | ||
id: 'teknium/openhermes-2.5-mistral-7b', | ||
tokens: 4096, | ||
}, | ||
{ | ||
displayName: 'Wizardlm2 8x22B', | ||
enabled: true, | ||
id: 'microsoft/wizardlm-2-8x22b', | ||
tokens: 65_535, | ||
}, | ||
], | ||
checkModel: 'meta-llama/llama-3-70b-instruct', | ||
disableBrowserRequest: true, | ||
id: 'novita', | ||
modelList: { showModelFetcher: true }, | ||
name: 'Novita', | ||
}; | ||
|
||
export default Novita; |
Oops, something went wrong.