Changesets · Branches · Tags · Compare
| Changeset | 59947ce7bb5371e5dce882dc581708f80bda2dd4da40b41985f213dd3e86bbac |
|---|---|
| Author | John Landa <jonathanlanda@gmail.com> · 2025-08-29 22:11 +02:00 |
| Committer | GitHub <noreply@github.com> · 2025-08-29 13:11 -07:00 |
| Parents | 50615f19c63d |
6 files changed
added core/llm/llms/TARS.ts +18 −0
| @@ -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; |
modified core/llm/llms/index.ts +2 −0
| @@ -53,6 +53,7 @@ | ||
| 53 | 53 | import Scaleway from "./Scaleway"; |
| 54 | 54 | import SiliconFlow from "./SiliconFlow"; |
| 55 | 55 | import ContinueProxy from "./stubs/ContinueProxy"; |
| 56 | +import TARS from "./TARS"; | |
| 56 | 57 | import TestLLM from "./Test"; |
| 57 | 58 | import TextGenWebUI from "./TextGenWebUI"; |
| 58 | 59 | import Together from "./Together"; |
| @@ -116,6 +117,7 @@ | ||
| 116 | 117 | Inception, |
| 117 | 118 | Voyage, |
| 118 | 119 | LlamaStack, |
| 120 | + TARS, | |
| 119 | 121 | ]; |
| 120 | 122 | |
| 121 | 123 | export async function llmFromDescription( |
added docs/customize/model-providers/more/tetrate_agent_router_service.mdx +44 −0
| @@ -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. |
modified extensions/vscode/config_schema.json +4 −2
| @@ -233,7 +233,8 @@ | ||
| 233 | 233 | "morph", |
| 234 | 234 | "ovhcloud", |
| 235 | 235 | "venice", |
| 236 | - "inception" | |
| 236 | + "inception", | |
| 237 | + "tars" | |
| 237 | 238 | ], |
| 238 | 239 | "markdownEnumDescriptions": [ |
| 239 | 240 | "### 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 @@ | ||
| 283 | 284 | "### Morph\nMorph provides a fast apply model. To get started, obtain an API key from [here](https://morphllm.com/dashboard).", |
| 284 | 285 | "### 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/).", |
| 285 | 286 | "### 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." | |
| 287 | 289 | ], |
| 288 | 290 | "type": "string" |
| 289 | 291 | }, |
added gui/public/logos/TetrateAgentRouterService.png +0 −0
Binary content is not shown. View the file.
modified gui/src/pages/AddNewModel/configs/providers.ts +26 −0
| @@ -998,4 +998,30 @@ | ||
| 998 | 998 | packages: [{ ...models.AUTODETECT }], |
| 999 | 999 | apiKeyUrl: "https://venice.ai/chat", |
| 1000 | 1000 | }, |
| 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 | + }, | |
| 1001 | 1027 | }; |