Skip to content

Commit 4571954

Browse files
authored
feat: Add Tetrate Agent Router Service as a provider (#7136)
feat: Add TARS as a provider Update gui with TARS provider Change default model to gpt-5 mini
1 parent 8cedf06 commit 4571954

File tree

6 files changed

+94
-2
lines changed

6 files changed

+94
-2
lines changed

core/llm/llms/TARS.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { LLMOptions } from "../../index.js";
2+
import { osModelsEditPrompt } from "../templates/edit.js";
3+
4+
import OpenAI from "./OpenAI.js";
5+
6+
class TARS extends OpenAI {
7+
static providerName = "tars";
8+
static defaultOptions: Partial<LLMOptions> = {
9+
apiBase: "https://api.router.tetrate.ai/v1",
10+
model: "gpt-5-mini",
11+
promptTemplates: {
12+
edit: osModelsEditPrompt,
13+
},
14+
useLegacyCompletionsEndpoint: false,
15+
};
16+
}
17+
18+
export default TARS;

core/llm/llms/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ import SambaNova from "./SambaNova";
5353
import Scaleway from "./Scaleway";
5454
import SiliconFlow from "./SiliconFlow";
5555
import ContinueProxy from "./stubs/ContinueProxy";
56+
import TARS from "./TARS";
5657
import TestLLM from "./Test";
5758
import TextGenWebUI from "./TextGenWebUI";
5859
import Together from "./Together";
@@ -116,6 +117,7 @@ export const LLMClasses = [
116117
Inception,
117118
Voyage,
118119
LlamaStack,
120+
TARS,
119121
];
120122

121123
export async function llmFromDescription(
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: "Tetrate Agent Router Service"
3+
---
4+
5+
The Tetrate Agent Router Service (TARS) provides a unified API gateway for accessing various AI models with fast inference capabilities. TARS acts as an intelligent router that can distribute requests across multiple model providers, offering enterprise-grade reliability and performance optimization.
6+
7+
## Getting Started
8+
9+
1. Obtain an API key from the [Tetrate Agent Router Service portal](https://api.router.tetrate.ai/)
10+
2. Configure Continue to use TARS as your model provider
11+
12+
## Configuration
13+
14+
Update your Continue configuration file (`~/.continue/config.json` or `~/.continue/config.yaml`) with your TARS API key:
15+
16+
<Tabs>
17+
<Tab title="YAML">
18+
```yaml title="config.yaml"
19+
models:
20+
- name: TARS GPT-5 Mini
21+
provider: tars
22+
model: gpt-5-mini
23+
apiKey: <YOUR_TARS_API_KEY>
24+
```
25+
</Tab>
26+
<Tab title="JSON">
27+
```json title="config.json"
28+
{
29+
"models": [
30+
{
31+
"title": "TARS GPT-5 Mini",
32+
"provider": "tars",
33+
"model": "gpt-5-mini",
34+
"apiKey": "<YOUR_TARS_API_KEY>"
35+
}
36+
]
37+
}
38+
```
39+
</Tab>
40+
</Tabs>
41+
42+
## Available Models
43+
44+
TARS supports routing to various models. Go to the [Tetrate Agent Router Service model catalog](https://router.tetrate.ai/models) for a full list of supported models.

extensions/vscode/config_schema.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@
233233
"morph",
234234
"ovhcloud",
235235
"venice",
236-
"inception"
236+
"inception",
237+
"tars"
237238
],
238239
"markdownEnumDescriptions": [
239240
"### OpenAI\nUse gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/openai)",
@@ -283,7 +284,8 @@
283284
"### Morph\nMorph provides a fast apply model. To get started, obtain an API key from [here](https://morphllm.com/dashboard).",
284285
"### OVHcloud AI Endpoints is a serverless inference API that provides access to a curated selection of models (e.g., Llama, Mistral, Qwen, Deepseek). It is designed with security and data privacy in mind and is compliant with GDPR. To get started, create an API key on the OVHcloud [AI Endpoints website](https://endpoints.ai.cloud.ovh.net/). For more information, including pricing, visit the OVHcloud [AI Endpoints product page](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/).",
285286
"### Venice\n Venice.AI is a privacy-focused generative AI platform, allowing users to interact with open-source LLMs without storing any private user data.\nHosted models support the OpenAI API standard, providing seamless integration for users seeking privacy and flexibility.\nTo get started with the Venice API, either purchase a pro account, stake $VVV for daily inference allotments, or fund your account with USD.\nVisit the [API settings page](https://venice.ai/settings/api) or learn more at the [Venice API documentation](https://venice.ai/api).",
286-
"### Inception\n Inception Labs offer a new generation of diffusion-based LLMs.\nVisit the [API settings page](https://platform.inceptionlabs.ai/) or learn more at the [Inception docs](https://platform.inceptionlabs.ai/docs)."
287+
"### Inception\n Inception Labs offer a new generation of diffusion-based LLMs.\nVisit the [API settings page](https://platform.inceptionlabs.ai/) or learn more at the [Inception docs](https://platform.inceptionlabs.ai/docs).",
288+
"### TARS\nTARS is an OpenAI-compatible proxy router. To get started, obtain an API key and configure the provider in your config.json."
287289
],
288290
"type": "string"
289291
},
31.1 KB
Loading

gui/src/pages/AddNewModel/configs/providers.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,4 +998,30 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo
998998
packages: [{ ...models.AUTODETECT }],
999999
apiKeyUrl: "https://venice.ai/chat",
10001000
},
1001+
tars: {
1002+
title: "Tetrate Agent Router Service",
1003+
provider: "tars",
1004+
icon: "TetrateAgentRouterService.png",
1005+
description: "TARS API for fast inference with various models",
1006+
tags: [ModelProviderTags.RequiresApiKey],
1007+
collectInputFor: [
1008+
{
1009+
inputType: "text",
1010+
key: "apiKey",
1011+
label: "API Key",
1012+
placeholder: "Enter your Tetrate Agent Router Service API key",
1013+
required: true,
1014+
},
1015+
],
1016+
packages: [
1017+
{
1018+
...models.AUTODETECT,
1019+
params: {
1020+
...models.AUTODETECT.params,
1021+
title: "TARS",
1022+
},
1023+
},
1024+
],
1025+
apiKeyUrl: "https://api.router.tetrate.ai/",
1026+
},
10011027
};

0 commit comments

Comments
 (0)