feat: add novita info
This commit is contained in:
parent
89344289e7
commit
94d8d39cfc
18 changed files with 266 additions and 12 deletions
|
|
@ -188,7 +188,7 @@ After you've written your context provider, make sure to complete the following:
|
|||
|
||||
### Adding an LLM Provider
|
||||
|
||||
Continue has support for more than a dozen different LLM "providers", making it easy to use models running on OpenAI, Ollama, Together, LM Studio, Msty, and more. You can find all of the existing providers [here](https://github.com/continuedev/continue/tree/main/core/llm/llms), and if you see one missing, you can add it with the following steps:
|
||||
Continue has support for more than a dozen different LLM "providers", making it easy to use models running on OpenAI, Ollama, Together, Novita, LM Studio, Msty, and more. You can find all of the existing providers [here](https://github.com/continuedev/continue/tree/main/core/llm/llms), and if you see one missing, you can add it with the following steps:
|
||||
|
||||
1. Create a new file in the `core/llm/llms` directory. The name of the file should be the name of the provider, and it should export a class that extends `BaseLLM`. This class should contain the following minimal implementation. We recommend viewing pre-existing providers for more details. The [LlamaCpp Provider](./core/llm/llms/LlamaCpp.ts) is a good simple example.
|
||||
|
||||
|
|
@ -209,7 +209,7 @@ While any model that works with a supported provider can be used with Continue,
|
|||
1. Add a `ModelPackage` entry for the model into [configs/models.ts](./gui/src/pages/AddNewModel/configs/models.ts), following the lead of the many examples near the top of the file
|
||||
2. Add the model within its provider's array to [AddNewModel.tsx](./gui/src/pages/AddNewModel/AddNewModel.tsx) (add provider if needed)
|
||||
- [index.d.ts](./core/index.d.ts) - This file defines the TypeScript types used throughout Continue. You'll find a `ModelName` type. Be sure to add the name of your model to this.
|
||||
- LLM Providers: Since many providers use their own custom strings to identify models, you'll have to add the translation from Continue's model name (the one you added to `index.d.ts`) and the model string for each of these providers: [Ollama](./core/llm/llms/Ollama.ts), [Together](./core/llm/llms/Together.ts), and [Replicate](./core/llm/llms/Replicate.ts). You can find their full model lists here: [Ollama](https://ollama.ai/library), [Together](https://docs.together.ai/docs/inference-models), [Replicate](https://replicate.com/collections/streaming-language-models).
|
||||
- LLM Providers: Since many providers use their own custom strings to identify models, you'll have to add the translation from Continue's model name (the one you added to `index.d.ts`) and the model string for each of these providers: [Ollama](./core/llm/llms/Ollama.ts), [Together](./core/llm/llms/Together.ts), [Novita](./core/llm/llms/Novita.ts), and [Replicate](./core/llm/llms/Replicate.ts). You can find their full model lists here: [Ollama](https://ollama.ai/library), [Together](https://docs.together.ai/docs/inference-models), [Novita](https://novita.ai/llm-api?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=link), [Replicate](https://replicate.com/collections/streaming-language-models).
|
||||
- [Prompt Templates](./core/llm/index.ts) - In this file you'll find the `autodetectTemplateType` function. Make sure that for the model name you just added, this function returns the correct template type. This is assuming that the chat template for that model is already built in Continue. If not, you will have to add the template type and corresponding edit and chat templates.
|
||||
|
||||
### Adding Pre-indexed Documentation
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ const PROVIDER_HANDLES_TEMPLATING: string[] = [
|
|||
"openai",
|
||||
"ollama",
|
||||
"together",
|
||||
"novita",
|
||||
"msty",
|
||||
"anthropic",
|
||||
"bedrock",
|
||||
|
|
@ -130,6 +131,7 @@ const PARALLEL_PROVIDERS: string[] = [
|
|||
"free-trial",
|
||||
"replicate",
|
||||
"together",
|
||||
"novita",
|
||||
"sambanova",
|
||||
"nebius",
|
||||
"vertexai",
|
||||
|
|
|
|||
53
core/llm/llms/Novita.ts
Normal file
53
core/llm/llms/Novita.ts
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
import OpenAI from "./OpenAI.js";
|
||||
|
||||
import type { CompletionOptions, LLMOptions } from "../../index.js";
|
||||
|
||||
class Novita extends OpenAI {
|
||||
static providerName = "novita";
|
||||
static defaultOptions: Partial<LLMOptions> = {
|
||||
apiBase: "https://api.novita.ai/v3/",
|
||||
};
|
||||
|
||||
private static MODEL_IDS: { [name: string]: string } = {
|
||||
// todo: yexiu
|
||||
"codellama-7b": "togethercomputer/CodeLlama-7b-Instruct",
|
||||
"codellama-13b": "togethercomputer/CodeLlama-13b-Instruct",
|
||||
"codellama-34b": "togethercomputer/CodeLlama-34b-Instruct",
|
||||
"codellama-70b": "codellama/CodeLlama-70b-Instruct-hf",
|
||||
"llama3-8b": "meta-llama/Llama-3-8b-chat-hf",
|
||||
"llama3-70b": "meta-llama/Llama-3-70b-chat-hf",
|
||||
"llama3.1-8b": "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
|
||||
"llama3.1-70b": "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",
|
||||
"llama3.1-405b": "meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo",
|
||||
"llama3.2-3b": "meta-llama/Llama-3.2-3B-Instruct-Turbo",
|
||||
"llama3.2-11b": "meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo",
|
||||
"llama3.2-90b": "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo",
|
||||
"llama2-7b": "togethercomputer/llama-2-7b-chat",
|
||||
"llama2-13b": "togethercomputer/llama-2-13b-chat",
|
||||
"llama2-70b": "togethercomputer/llama-2-70b-chat",
|
||||
"mistral-7b": "mistralai/Mistral-7B-Instruct-v0.1",
|
||||
"mistral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
||||
"phind-codellama-34b": "Phind/Phind-CodeLlama-34B-v2",
|
||||
"wizardcoder-34b": "WizardLM/WizardCoder-Python-34B-V1.0",
|
||||
};
|
||||
|
||||
protected _convertModelName(model: string) {
|
||||
return Novita.MODEL_IDS[model] || this.model;
|
||||
}
|
||||
|
||||
protected async *_streamComplete(
|
||||
prompt: string,
|
||||
signal: AbortSignal,
|
||||
options: CompletionOptions,
|
||||
): AsyncGenerator<string> {
|
||||
for await (const chunk of this._legacystreamComplete(
|
||||
prompt,
|
||||
signal,
|
||||
options,
|
||||
)) {
|
||||
yield chunk;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default Novita;
|
||||
|
|
@ -48,6 +48,7 @@ import ContinueProxy from "./stubs/ContinueProxy";
|
|||
import TestLLM from "./Test";
|
||||
import TextGenWebUI from "./TextGenWebUI";
|
||||
import Together from "./Together";
|
||||
import Novita from "./Novita";
|
||||
import VertexAI from "./VertexAI";
|
||||
import Vllm from "./Vllm";
|
||||
import WatsonX from "./WatsonX";
|
||||
|
|
@ -65,6 +66,7 @@ export const LLMClasses = [
|
|||
Replicate,
|
||||
TextGenWebUI,
|
||||
Together,
|
||||
Novita,
|
||||
HuggingFaceTGI,
|
||||
HuggingFaceInferenceAPI,
|
||||
Kindo,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ Our current top recommendation is Claude Sonnet 3.5 from [Anthropic](../customiz
|
|||
|
||||
### Llama 3.1 405B from Meta
|
||||
|
||||
If you prefer to use an open-weight model, then Llama 3.1 405B from Meta is your best option right now. You will need to decide if you use it through a SaaS model provider (e.g. [Together](../customize/model-providers/more/together.md) or [Groq](../customize/model-providers/more/groq.md)) or self-host it (e.g. using [vLLM](../customize/model-providers//more/vllm.md) or [Ollama](../customize/model-providers/top-level/ollama.md)).
|
||||
If you prefer to use an open-weight model, then Llama 3.1 405B from Meta is your best option right now. You will need to decide if you use it through a SaaS model provider (e.g. [Together](../customize/model-providers/more/together.md) or [Novita](../customize/model-providers/more/novita.md) or [Groq](../customize/model-providers/more/groq.md)) or self-host it (e.g. using [vLLM](../customize/model-providers//more/vllm.md) or [Ollama](../customize/model-providers/top-level/ollama.md)).
|
||||
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Together">
|
||||
|
|
@ -48,6 +48,18 @@ If you prefer to use an open-weight model, then Llama 3.1 405B from Meta is your
|
|||
]
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Novita">
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405B",
|
||||
"provider": "novita",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "[NOVITA_API_KEY]"
|
||||
}
|
||||
]
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Groq">
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
|
|
|
|||
18
docs/docs/customize/model-providers/more/novita.md
Normal file
18
docs/docs/customize/model-providers/more/novita.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Novita
|
||||
|
||||
The Novita API is a cloud platform for running large AI models. You can sign up [here](https://novita.ai/user/login?&redirect=/&utm_source=github_continuedev), copy your API key on the initial welcome screen, and then hit the play button on any model from the [Novita Models list](https://novita.ai/llm-api?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=link). Change `~/.continue/config.json` to look like this:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Novita Qwen2.5 Coder",
|
||||
"provider": "novita",
|
||||
"model": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Novita.ts)
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Using Llama 3.1 with Continue
|
||||
description: How to use Llama 3.1 with Continue
|
||||
keywords: [llama, meta, togetherai, ollama, replicate]
|
||||
keywords: [llama, meta, togetherai, novita, ollama, replicate]
|
||||
---
|
||||
|
||||
Continue makes it easy to code with the latest open-source models, including the entire Llama 3.1 family of models. Llama 3.2 models are also supported but not recommended for chat, because they are specifically designed to be small or multi-modal.
|
||||
|
|
@ -71,6 +71,28 @@ Together AI provides fast and reliable inference of open-source models. You'll b
|
|||
}
|
||||
```
|
||||
|
||||
|
||||
## Novita AI
|
||||
|
||||
Novita AI provides fast and reliable inference of open-source models. You'll be able to run the 405b model with good speed.
|
||||
|
||||
1. Create an account [here](https://novita.ai/user/login?&redirect=/&utm_source=github_continuedev)
|
||||
2. Copy your API key that appears on the welcome screen
|
||||
3. Update your Continue config file like this:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405b",
|
||||
"provider": "novita",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "<API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Replicate
|
||||
|
||||
Replicate makes it easy to host and run open-source AI with an API.
|
||||
|
|
|
|||
|
|
@ -388,7 +388,11 @@ const config = {
|
|||
},
|
||||
{
|
||||
to: "/customize/model-providers/more/together",
|
||||
from: "/reference/Model Providers/togetherllm",
|
||||
from: "/reference/Model Providers/together",
|
||||
},
|
||||
{
|
||||
to: "/customize/model-providers/more/novita",
|
||||
from: "/reference/Model Providers/novita",
|
||||
},
|
||||
{
|
||||
to: "/customize/model-providers/more/vllm",
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ import TabItem from "@theme/TabItem";
|
|||
|
||||
### 来自 Meta 的 Llama 3.1 405B
|
||||
|
||||
如果你倾向于使用开放权重模型,那么来自 Meta 的 Llama 3.1 405B 是你当前的最好选择。你需要决定,通过 SaaS 模型提供者使用它(比如 [Together](../customize/model-providers/more/together.md) 或 [Groq](../customize/model-providers/more/groq.md))或者自托管使用它(比如使用 [vLLM](../customize/model-providers//more/vllm.md) 或 [Ollama](../customize/model-providers/top-level/ollama.md)) 。
|
||||
如果你倾向于使用开放权重模型,那么来自 Meta 的 Llama 3.1 405B 是你当前的最好选择。你需要决定,通过 SaaS 模型提供者使用它(比如 [Together](../customize/model-providers/more/together.md) 、[Novita](../customize/model-providers/more/novita.md)或 [Groq](../customize/model-providers/more/groq.md))或者自托管使用它(比如使用 [vLLM](../customize/model-providers//more/vllm.md) 或 [Ollama](../customize/model-providers/top-level/ollama.md)) 。
|
||||
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Together">
|
||||
|
|
@ -48,6 +48,18 @@ import TabItem from "@theme/TabItem";
|
|||
]
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Novita">
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405B",
|
||||
"provider": "novita",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "[NOVITA_API_KEY]"
|
||||
}
|
||||
]
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Groq">
|
||||
```json title="config.json"
|
||||
"models": [
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
# Novita
|
||||
|
||||
Novita API 是一个运行大 AI 模型的云平台。你可以在 [这里](https://novita.ai/user/login?&redirect=/&utm_source=github_continuedev) 注册,在最初欢迎屏幕复制你的 API key ,然后在 [Novita 模型列表](https://novita.ai/llm-api?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=link) 的任何模型上点击 play 按钮。修改 `~/.continue/config.json` 像这样:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Novita CodeLlama",
|
||||
"provider": "Novita",
|
||||
"model": "codellama-13b",
|
||||
"apiKey": "YOUR_API_KEY"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
[查看代码](https://github.com/continuedev/continue/blob/main/core/llm/llms/Novita.ts)
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Continue 使用 Llama 3.1
|
||||
description: Continue 如何使用 Llama 3.1
|
||||
keywords: [llama, meta, togetherai, ollama, replicate]
|
||||
keywords: [llama, meta, togetherai, novita, ollama, replicate]
|
||||
---
|
||||
|
||||
Continue 让使用最新的开元模型编码变得简单,包括整个 Llama 3.1 家族模型。
|
||||
|
|
@ -71,6 +71,27 @@ Together AI 提供开源模型的快速和可信任的推理。你可以以良
|
|||
}
|
||||
```
|
||||
|
||||
## Novita AI
|
||||
|
||||
Novita AI 提供开源模型的快速和可信任的推理。你可以以良好的速度运行 405b 模型。
|
||||
|
||||
1. 创建账号 [在这里](https://novita.ai/llm-api?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=link)
|
||||
2. 复制出现在Key Management你的 API key
|
||||
3. 更新你的 Continue 配置文件像这样:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405b",
|
||||
"provider": "novita",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "<API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Replicate
|
||||
|
||||
Replicate 让使用 API 托管和运行开源 AI 变得简单。
|
||||
|
|
|
|||
|
|
@ -180,6 +180,7 @@
|
|||
"bedrockimport",
|
||||
"sagemaker",
|
||||
"together",
|
||||
"novita",
|
||||
"ollama",
|
||||
"huggingface-tgi",
|
||||
"huggingface-inference-api",
|
||||
|
|
@ -222,6 +223,7 @@
|
|||
"### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)",
|
||||
"### Sagemaker\nSagemaker is AWS' machine learning platform.",
|
||||
"### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)",
|
||||
"### Novita\nNovita is a hosted service that provides extremely fast streaming of open-source language models. To get started with Novita:\n1. Obtain an API key from [here](https://novita.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/novitallm)",
|
||||
"### Ollama\nTo get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama run <MODEL_NAME>`. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model=\"codellama:7b-instruct\"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/ollama)",
|
||||
"### Huggingface TGI\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfacetgi)",
|
||||
"### Huggingface Inference API\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/huggingfaceinferenceapi)",
|
||||
|
|
@ -262,7 +264,7 @@
|
|||
},
|
||||
"apiKey": {
|
||||
"title": "Api Key",
|
||||
"description": "OpenAI, Anthropic, Cohere, Together, or other API key",
|
||||
"description": "OpenAI, Anthropic, Cohere, Together, Novita, or other API key",
|
||||
"type": "string"
|
||||
},
|
||||
"apiBase": {
|
||||
|
|
@ -475,6 +477,7 @@
|
|||
"huggingface-inference-api",
|
||||
"replicate",
|
||||
"together",
|
||||
"novita",
|
||||
"cloudflare",
|
||||
"sambanova",
|
||||
"nebius",
|
||||
|
|
@ -980,6 +983,47 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"provider": {
|
||||
"enum": ["novita"]
|
||||
}
|
||||
},
|
||||
"required": ["provider"]
|
||||
},
|
||||
"then": {
|
||||
"properties": {
|
||||
"model": {
|
||||
"anyOf": [
|
||||
{
|
||||
"enum": [
|
||||
"mistral-7b",
|
||||
"mistral-8x7b",
|
||||
"llama2-7b",
|
||||
"llama2-13b",
|
||||
"llama3-8b",
|
||||
"llama3-70b",
|
||||
"llama3.1-8b",
|
||||
"llama3.1-70b",
|
||||
"llama3.1-405b",
|
||||
"codellama-7b",
|
||||
"codellama-13b",
|
||||
"codellama-34b",
|
||||
"codellama-70b",
|
||||
"phind-codellama-34b"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"markdownDescription": "Select a pre-defined option, or find an exact model string from Novita AI [here](https://novita.ai/llm-api?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=link).",
|
||||
"x-intellij-html-description": "Select a pre-defined option, or find an exact model string from Novita AI <a href='https://novita.ai/llm-api?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=link'>here</a>."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
"ollama",
|
||||
"lmstudio",
|
||||
"together",
|
||||
"novita",
|
||||
"llama.cpp",
|
||||
"replicate",
|
||||
"sambanova",
|
||||
|
|
@ -253,6 +254,7 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
"ollama",
|
||||
"lmstudio",
|
||||
"together",
|
||||
"novita",
|
||||
"llama.cpp",
|
||||
"replicate",
|
||||
"nebius",
|
||||
|
|
@ -298,6 +300,7 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
"ollama",
|
||||
"lmstudio",
|
||||
"together",
|
||||
"novita",
|
||||
"llama.cpp",
|
||||
"replicate",
|
||||
],
|
||||
|
|
@ -445,7 +448,7 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
contextLength: 8192,
|
||||
},
|
||||
icon: "meta.png",
|
||||
providerOptions: ["ollama", "groq", "llama.cpp", "sambanova", "together"],
|
||||
providerOptions: ["ollama", "groq", "llama.cpp", "sambanova", "together", "novita"],
|
||||
isOpenSource: false,
|
||||
},
|
||||
llama3211bChat: {
|
||||
|
|
@ -458,7 +461,7 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
contextLength: 8192,
|
||||
},
|
||||
icon: "meta.png",
|
||||
providerOptions: ["ollama", "groq", "llama.cpp", "together"],
|
||||
providerOptions: ["ollama", "groq", "llama.cpp", "together", "novita"],
|
||||
isOpenSource: false,
|
||||
},
|
||||
llama3290bChat: {
|
||||
|
|
@ -504,6 +507,7 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
"ollama",
|
||||
"lmstudio",
|
||||
"together",
|
||||
"novita",
|
||||
"llama.cpp",
|
||||
"replicate",
|
||||
"nebius",
|
||||
|
|
|
|||
|
|
@ -404,6 +404,38 @@ Select the \`GPT-4o\` model below to complete your provider configuration, but n
|
|||
}),
|
||||
apiKeyUrl: "https://api.together.xyz/settings/api-keys",
|
||||
},
|
||||
novita: {
|
||||
title: "NovitaAI",
|
||||
provider: "novita",
|
||||
refPage: "novita",
|
||||
description:
|
||||
"Use the NovitaAI API for extremely fast streaming of open-source models",
|
||||
icon: "novita.png",
|
||||
longDescription: `Novita is a hosted service that provides extremely fast streaming of open-source language models. To get started with Novita:\n1. Obtain an API key from [here](https://novita.ai)\n2. Paste below\n3. Select a model preset`,
|
||||
tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
|
||||
params: {
|
||||
apiKey: "",
|
||||
},
|
||||
collectInputFor: [
|
||||
{
|
||||
inputType: "text",
|
||||
key: "apiKey",
|
||||
label: "API Key",
|
||||
placeholder: "Enter your NovitaAI API key",
|
||||
required: true,
|
||||
},
|
||||
...completionParamsInputsConfigs,
|
||||
],
|
||||
packages: [
|
||||
models.llama31Chat,
|
||||
models.codeLlamaInstruct,
|
||||
models.mistralOs,
|
||||
].map((p) => {
|
||||
p.params.contextLength = 4096;
|
||||
return p;
|
||||
}),
|
||||
apiKeyUrl: "https://novita.ai/settings/key-management",
|
||||
},
|
||||
gemini: {
|
||||
title: "Google Gemini API",
|
||||
provider: "gemini",
|
||||
|
|
@ -640,8 +672,8 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo
|
|||
provider: "free-trial",
|
||||
refPage: "freetrial",
|
||||
description:
|
||||
"New users can try out Continue for free using a proxy server that securely makes calls to OpenAI, Anthropic, or Together using our API key",
|
||||
longDescription: `New users can try out Continue for free using a proxy server that securely makes calls to OpenAI, Anthropic, or Together using our API key. If you are ready to set up a model for long-term use or have used all ${FREE_TRIAL_LIMIT_REQUESTS} free uses, you can enter your API key or use a local model.`,
|
||||
"New users can try out Continue for free using a proxy server that securely makes calls to OpenAI, Anthropic, Together, or Novita using our API key",
|
||||
longDescription: `New users can try out Continue for free using a proxy server that securely makes calls to OpenAI, Anthropic, Together or Novita using our API key. If you are ready to set up a model for long-term use or have used all ${FREE_TRIAL_LIMIT_REQUESTS} free uses, you can enter your API key or use a local model.`,
|
||||
icon: "openai.png",
|
||||
tags: [ModelProviderTags.Free],
|
||||
packages: [
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ They are concerned with:
|
|||
- [ ] Silicon Flow
|
||||
- [x] TextGen Web UI
|
||||
- [x] Together
|
||||
- [x] Novita
|
||||
- [x] Vllm
|
||||
- [ ] Vertex AI
|
||||
- [x] Voyage AI
|
||||
|
|
|
|||
|
|
@ -73,6 +73,8 @@ export function constructLlmApi(config: LLMConfig): BaseLlmApi | undefined {
|
|||
return openAICompatible("https://api.fireworks.ai/inference/v1/", config);
|
||||
case "together":
|
||||
return openAICompatible("https://api.together.xyz/v1/", config);
|
||||
case "novita":
|
||||
return openAICompatible("https://api.novita.ai/v3", config);
|
||||
case "nebius":
|
||||
return openAICompatible("https://api.studio.nebius.ai/v1/", config);
|
||||
case "function-network":
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ export const OpenAIConfigSchema = BasePlusConfig.extend({
|
|||
z.literal("nvidia"),
|
||||
z.literal("fireworks"),
|
||||
z.literal("together"),
|
||||
z.literal("novita"),
|
||||
z.literal("sambanova"),
|
||||
z.literal("nebius"),
|
||||
z.literal("function-network"),
|
||||
|
|
|
|||
|
|
@ -267,6 +267,12 @@ const COMPLETION_TESTS: ({ chatOnly?: boolean } & LlmApiConfig)[] = [
|
|||
apiKey: process.env.TOGETHER_API_KEY!,
|
||||
chatOnly: true,
|
||||
},
|
||||
{
|
||||
provider: "novita",
|
||||
model: "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
|
||||
apiKey: process.env.NOVITA_API_KEY!,
|
||||
chatOnly: true,
|
||||
},
|
||||
{
|
||||
provider: "sambanova",
|
||||
model: "Meta-Llama-3.1-8B-Instruct",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue