mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
add additional model providers
This commit is contained in:
parent
f0fd44fac1
commit
da8d49f8d9
18 changed files with 3961 additions and 650 deletions
|
|
@ -45,7 +45,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
|
|||
|
||||
### Amazon Bedrock
|
||||
|
||||
[Vercel AI SDK Amazon Bedrock Docs](https://ai-sdk.dev/providers/ai-sdk-providers/amazon-bedrock)
|
||||
[Vercel AI SDK Amazon Bedrock Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/amazon-bedrock)
|
||||
|
||||
```json wrap icon="code" Example config with Amazon Bedrock provider
|
||||
{
|
||||
|
|
@ -70,7 +70,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
|
|||
|
||||
### Anthropic
|
||||
|
||||
[Vercel AI SDK Anthropic Docs](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)
|
||||
[Vercel AI SDK Anthropic Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/anthropic)
|
||||
|
||||
```json wrap icon="code" Example config with Anthropic provider
|
||||
{
|
||||
|
|
@ -89,9 +89,53 @@ For a detailed description of all the providers, please refer to the [schema](ht
|
|||
}
|
||||
```
|
||||
|
||||
### Azure OpenAI
|
||||
|
||||
[Vercel AI SDK Azure OpenAI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/azure)
|
||||
|
||||
```json wrap icon="code" Example config with Azure AI provider
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
|
||||
"models": [
|
||||
{
|
||||
"provider": "azure",
|
||||
"model": "YOUR_MODEL_HERE",
|
||||
"displayName": "OPTIONAL_DISPLAY_NAME",
|
||||
"resourceName": "YOUR_RESOURCE_NAME", // defaults to the AZURE_RESOURCE_NAME env var if not set
|
||||
"apiVersion": "OPTIONAL_API_VERSION", // defailts to 'preview' if not set
|
||||
"token": {
|
||||
"env": "AZURE_API_KEY"
|
||||
},
|
||||
"baseUrl": "OPTIONAL_BASE_URL"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Deepseek
|
||||
|
||||
[Vercel AI SDK Deepseek Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/deepseek)
|
||||
|
||||
```json wrap icon="code" Example config with Deepseek provider
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
|
||||
"models": [
|
||||
{
|
||||
"provider": "deepseek",
|
||||
"model": "YOUR_MODEL_HERE",
|
||||
"displayName": "OPTIONAL_DISPLAY_NAME",
|
||||
"token": {
|
||||
"env": "DEEPSEEK_API_KEY"
|
||||
},
|
||||
"baseUrl": "OPTIONAL_BASE_URL"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Google Generative AI
|
||||
|
||||
[Vercel AI SDK Google Generative AI Docs](https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai)
|
||||
[Vercel AI SDK Google Generative AI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai)
|
||||
|
||||
```json wrap icon="code" Example config with Google Generative AI provider
|
||||
{
|
||||
|
|
@ -115,7 +159,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
|
|||
<Note>If you're using an Anthropic model on Google Vertex, you must define a [Google Vertex Anthropic](#google-vertex-anthropic) provider instead</Note>
|
||||
<Note>The `credentials` paramater here expects a **path** to a [credentials](https://console.cloud.google.com/apis/credentials) file. This file **must be in a volume mounted by Sourcebot** for it to be readable.</Note>
|
||||
|
||||
[Vercel AI SDK Google Vertex AI Docs](https://ai-sdk.dev/providers/ai-sdk-providers/google-vertex)
|
||||
[Vercel AI SDK Google Vertex AI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/google-vertex)
|
||||
|
||||
```json wrap icon="code" Example config with Google Vertex provider
|
||||
{
|
||||
|
|
@ -123,10 +167,10 @@ For a detailed description of all the providers, please refer to the [schema](ht
|
|||
"models": [
|
||||
{
|
||||
"provider": "google-vertex",
|
||||
"model": "YOUR_MODEL_HERE", // e.g., "gemini-2.0-flash-exp", "gemini-1.5-pro", "gemini-1.5-flash"
|
||||
"model": "YOUR_MODEL_HERE",
|
||||
"displayName": "OPTIONAL_DISPLAY_NAME",
|
||||
"project": "YOUR_PROJECT_ID", // defaults to the GOOGLE_VERTEX_PROJECT env var if not set
|
||||
"region": "YOUR_REGION_HERE", // defaults to the GOOGLE_VERTEX_REGION env var if not set, e.g., "us-central1", "us-east1", "europe-west1"
|
||||
"region": "YOUR_REGION_HERE", // defaults to the GOOGLE_VERTEX_REGION env var if not set
|
||||
"credentials": {
|
||||
"env": "GOOGLE_APPLICATION_CREDENTIALS"
|
||||
},
|
||||
|
|
@ -141,7 +185,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
|
|||
<Note>The `credentials` paramater here expects a **path** to a [credentials](https://console.cloud.google.com/apis/credentials) file. This file **must be in a volume mounted by Sourcebot** for it to be readable.</Note>
|
||||
|
||||
|
||||
[Vercel AI SDK Google Vertex Anthropic Docs](https://ai-sdk.dev/providers/ai-sdk-providers/google-vertex#google-vertex-anthropic-provider-usage)
|
||||
[Vercel AI SDK Google Vertex Anthropic Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/google-vertex#google-vertex-anthropic-provider-usage)
|
||||
|
||||
```json wrap icon="code" Example config with Google Vertex Anthropic provider
|
||||
{
|
||||
|
|
@ -149,10 +193,10 @@ For a detailed description of all the providers, please refer to the [schema](ht
|
|||
"models": [
|
||||
{
|
||||
"provider": "google-vertex-anthropic",
|
||||
"model": "YOUR_MODEL_HERE", // e.g., "claude-sonnet-4"
|
||||
"model": "YOUR_MODEL_HERE",
|
||||
"displayName": "OPTIONAL_DISPLAY_NAME",
|
||||
"project": "YOUR_PROJECT_ID", // defaults to the GOOGLE_VERTEX_PROJECT env var if not set
|
||||
"region": "YOUR_REGION_HERE", // defaults to the GOOGLE_VERTEX_REGION env var if not set, e.g., "us-central1", "us-east1", "europe-west1"
|
||||
"region": "YOUR_REGION_HERE", // defaults to the GOOGLE_VERTEX_REGION env var if not set
|
||||
"credentials": {
|
||||
"env": "GOOGLE_APPLICATION_CREDENTIALS"
|
||||
},
|
||||
|
|
@ -162,9 +206,30 @@ For a detailed description of all the providers, please refer to the [schema](ht
|
|||
}
|
||||
```
|
||||
|
||||
### Mistral
|
||||
|
||||
[Vercel AI SDK Mistral Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/mistral)
|
||||
|
||||
```json wrap icon="code" Example config with Mistral provider
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
|
||||
"models": [
|
||||
{
|
||||
"provider": "mistral",
|
||||
"model": "YOUR_MODEL_HERE",
|
||||
"displayName": "OPTIONAL_DISPLAY_NAME",
|
||||
"token": {
|
||||
"env": "MISTRAL_API_KEY"
|
||||
},
|
||||
"baseUrl": "OPTIONAL_BASE_URL"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### OpenAI
|
||||
|
||||
[Vercel AI SDK OpenAI Docs](https://ai-sdk.dev/providers/ai-sdk-providers/openai)
|
||||
[Vercel AI SDK OpenAI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/openai)
|
||||
|
||||
```json wrap icon="code" Example config with OpenAI provider
|
||||
{
|
||||
|
|
@ -172,7 +237,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
|
|||
"models": [
|
||||
{
|
||||
"provider": "openai",
|
||||
"model": "YOUR_MODEL_HERE", // e.g., "gpt-4.1", "o4-mini", "o3", "o3-deep-research"
|
||||
"model": "YOUR_MODEL_HERE",
|
||||
"displayName": "OPTIONAL_DISPLAY_NAME",
|
||||
"token": {
|
||||
"env": "OPENAI_API_KEY"
|
||||
|
|
@ -182,3 +247,45 @@ For a detailed description of all the providers, please refer to the [schema](ht
|
|||
]
|
||||
}
|
||||
```
|
||||
|
||||
### OpenRouter
|
||||
|
||||
[Vercel AI SDK OpenRouter Docs](https://v5.ai-sdk.dev/providers/community-providers/openrouter)
|
||||
|
||||
```json wrap icon="code" Example config with OpenRouter provider
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
|
||||
"models": [
|
||||
{
|
||||
"provider": "openai",
|
||||
"model": "YOUR_MODEL_HERE",
|
||||
"displayName": "OPTIONAL_DISPLAY_NAME",
|
||||
"token": {
|
||||
"env": "OPENROUTER_API_KEY"
|
||||
},
|
||||
"baseUrl": "OPTIONAL_BASE_URL"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### xAI
|
||||
|
||||
[Vercel AI SDK xAI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/xai)
|
||||
|
||||
```json wrap icon="code" Example config with xAI provider
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
|
||||
"models": [
|
||||
{
|
||||
"provider": "xai",
|
||||
"model": "YOUR_MODEL_HERE",
|
||||
"displayName": "OPTIONAL_DISPLAY_NAME",
|
||||
"token": {
|
||||
"env": "XAI_API_KEY"
|
||||
},
|
||||
"baseUrl": "OPTIONAL_BASE_URL"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
|
@ -1144,71 +1144,6 @@
|
|||
"type": "object",
|
||||
"title": "LanguageModel",
|
||||
"definitions": {
|
||||
"OpenAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openai",
|
||||
"description": "OpenAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"gpt-4.1",
|
||||
"o4-mini",
|
||||
"o3",
|
||||
"o3-deep-research"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AmazonBedrockLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1367,6 +1302,132 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AzureLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "azure",
|
||||
"description": "Azure Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The deployment name of the Azure model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"resourceName": {
|
||||
"type": "string",
|
||||
"description": "Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"apiVersion": {
|
||||
"type": "string",
|
||||
"description": "Sets a custom api version. Defaults to `preview`."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Use a different URL prefix for API calls. Either this or `resourceName` can be used."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"DeepSeekLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "deepseek",
|
||||
"description": "DeepSeek Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleGenerativeAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1426,6 +1487,81 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexAnthropicLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1503,39 +1639,23 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexAnthropicLanguageModel": {
|
||||
"MistralLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
"const": "mistral",
|
||||
"description": "Mistral AI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
|
|
@ -1577,10 +1697,8 @@
|
|||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
},
|
||||
"OpenAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
|
|
@ -1645,6 +1763,130 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"OpenRouterLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openrouter",
|
||||
"description": "OpenRouter Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"XaiLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "xai",
|
||||
"description": "xAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"grok-beta",
|
||||
"grok-vision-beta"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1803,6 +2045,132 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "azure",
|
||||
"description": "Azure Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The deployment name of the Azure model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"resourceName": {
|
||||
"type": "string",
|
||||
"description": "Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"apiVersion": {
|
||||
"type": "string",
|
||||
"description": "Sets a custom api version. Defaults to `preview`."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Use a different URL prefix for API calls. Either this or `resourceName` can be used."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "deepseek",
|
||||
"description": "DeepSeek Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1862,6 +2230,81 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1943,35 +2386,206 @@
|
|||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
"const": "mistral",
|
||||
"description": "Mistral AI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openai",
|
||||
"description": "OpenAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
"gpt-4.1",
|
||||
"o4-mini",
|
||||
"o3",
|
||||
"o3-deep-research"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openrouter",
|
||||
"description": "OpenRouter Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "xai",
|
||||
"description": "xAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"grok-beta",
|
||||
"grok-vision-beta"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
|
|
|
|||
|
|
@ -4,71 +4,6 @@
|
|||
"type": "object",
|
||||
"title": "LanguageModel",
|
||||
"definitions": {
|
||||
"OpenAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openai",
|
||||
"description": "OpenAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"gpt-4.1",
|
||||
"o4-mini",
|
||||
"o3",
|
||||
"o3-deep-research"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AmazonBedrockLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -227,6 +162,132 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AzureLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "azure",
|
||||
"description": "Azure Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The deployment name of the Azure model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"resourceName": {
|
||||
"type": "string",
|
||||
"description": "Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"apiVersion": {
|
||||
"type": "string",
|
||||
"description": "Sets a custom api version. Defaults to `preview`."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Use a different URL prefix for API calls. Either this or `resourceName` can be used."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"DeepSeekLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "deepseek",
|
||||
"description": "DeepSeek Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleGenerativeAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -286,6 +347,81 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexAnthropicLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -363,39 +499,23 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexAnthropicLanguageModel": {
|
||||
"MistralLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
"const": "mistral",
|
||||
"description": "Mistral AI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
|
|
@ -437,10 +557,8 @@
|
|||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
},
|
||||
"OpenAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
|
|
@ -505,6 +623,130 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"OpenRouterLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openrouter",
|
||||
"description": "OpenRouter Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"XaiLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "xai",
|
||||
"description": "xAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"grok-beta",
|
||||
"grok-vision-beta"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -663,6 +905,132 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "azure",
|
||||
"description": "Azure Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The deployment name of the Azure model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"resourceName": {
|
||||
"type": "string",
|
||||
"description": "Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"apiVersion": {
|
||||
"type": "string",
|
||||
"description": "Sets a custom api version. Defaults to `preview`."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Use a different URL prefix for API calls. Either this or `resourceName` can be used."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "deepseek",
|
||||
"description": "DeepSeek Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -722,6 +1090,81 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -803,35 +1246,206 @@
|
|||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
"const": "mistral",
|
||||
"description": "Mistral AI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openai",
|
||||
"description": "OpenAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
"gpt-4.1",
|
||||
"o4-mini",
|
||||
"o3",
|
||||
"o3-deep-research"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openrouter",
|
||||
"description": "OpenRouter Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "xai",
|
||||
"description": "xAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"grok-beta",
|
||||
"grok-vision-beta"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
|
|
|
|||
|
|
@ -1143,71 +1143,6 @@ const schema = {
|
|||
"type": "object",
|
||||
"title": "LanguageModel",
|
||||
"definitions": {
|
||||
"OpenAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openai",
|
||||
"description": "OpenAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"gpt-4.1",
|
||||
"o4-mini",
|
||||
"o3",
|
||||
"o3-deep-research"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AmazonBedrockLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1366,6 +1301,132 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AzureLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "azure",
|
||||
"description": "Azure Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The deployment name of the Azure model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"resourceName": {
|
||||
"type": "string",
|
||||
"description": "Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"apiVersion": {
|
||||
"type": "string",
|
||||
"description": "Sets a custom api version. Defaults to `preview`."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Use a different URL prefix for API calls. Either this or `resourceName` can be used."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"DeepSeekLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "deepseek",
|
||||
"description": "DeepSeek Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleGenerativeAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1425,6 +1486,81 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexAnthropicLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1502,39 +1638,23 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexAnthropicLanguageModel": {
|
||||
"MistralLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
"const": "mistral",
|
||||
"description": "Mistral AI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
|
|
@ -1576,10 +1696,8 @@ const schema = {
|
|||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
},
|
||||
"OpenAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
|
|
@ -1644,6 +1762,130 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"OpenRouterLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openrouter",
|
||||
"description": "OpenRouter Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"XaiLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "xai",
|
||||
"description": "xAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"grok-beta",
|
||||
"grok-vision-beta"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1802,6 +2044,132 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "azure",
|
||||
"description": "Azure Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The deployment name of the Azure model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"resourceName": {
|
||||
"type": "string",
|
||||
"description": "Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"apiVersion": {
|
||||
"type": "string",
|
||||
"description": "Sets a custom api version. Defaults to `preview`."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Use a different URL prefix for API calls. Either this or `resourceName` can be used."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "deepseek",
|
||||
"description": "DeepSeek Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1861,6 +2229,81 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1942,35 +2385,206 @@ const schema = {
|
|||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
"const": "mistral",
|
||||
"description": "Mistral AI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openai",
|
||||
"description": "OpenAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
"gpt-4.1",
|
||||
"o4-mini",
|
||||
"o3",
|
||||
"o3-deep-research"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openrouter",
|
||||
"description": "OpenRouter Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "xai",
|
||||
"description": "xAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"grok-beta",
|
||||
"grok-vision-beta"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
|
|
|
|||
|
|
@ -12,12 +12,17 @@ export type ConnectionConfig =
|
|||
| BitbucketConnectionConfig
|
||||
| GenericGitHostConnectionConfig;
|
||||
export type LanguageModel =
|
||||
| OpenAILanguageModel
|
||||
| AmazonBedrockLanguageModel
|
||||
| AnthropicLanguageModel
|
||||
| AzureLanguageModel
|
||||
| DeepSeekLanguageModel
|
||||
| GoogleGenerativeAILanguageModel
|
||||
| GoogleVertexAnthropicLanguageModel
|
||||
| GoogleVertexLanguageModel
|
||||
| GoogleVertexAnthropicLanguageModel;
|
||||
| MistralLanguageModel
|
||||
| OpenAILanguageModel
|
||||
| OpenRouterLanguageModel
|
||||
| XaiLanguageModel;
|
||||
|
||||
export interface SourcebotConfig {
|
||||
$schema?: string;
|
||||
|
|
@ -428,40 +433,6 @@ export interface GenericGitHostConnectionConfig {
|
|||
url: string;
|
||||
revisions?: GitRevisions;
|
||||
}
|
||||
export interface OpenAILanguageModel {
|
||||
/**
|
||||
* OpenAI Configuration
|
||||
*/
|
||||
provider: "openai";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface AmazonBedrockLanguageModel {
|
||||
/**
|
||||
* Amazon Bedrock Configuration
|
||||
|
|
@ -550,11 +521,53 @@ export interface AnthropicLanguageModel {
|
|||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface GoogleGenerativeAILanguageModel {
|
||||
export interface AzureLanguageModel {
|
||||
/**
|
||||
* Google Generative AI Configuration
|
||||
* Azure Configuration
|
||||
*/
|
||||
provider: "google-generative-ai";
|
||||
provider: "azure";
|
||||
/**
|
||||
* The deployment name of the Azure model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable.
|
||||
*/
|
||||
resourceName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Sets a custom api version. Defaults to `preview`.
|
||||
*/
|
||||
apiVersion?: string;
|
||||
/**
|
||||
* Use a different URL prefix for API calls. Either this or `resourceName` can be used.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface DeepSeekLanguageModel {
|
||||
/**
|
||||
* DeepSeek Configuration
|
||||
*/
|
||||
provider: "deepseek";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
|
|
@ -564,7 +577,7 @@ export interface GoogleGenerativeAILanguageModel {
|
|||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.
|
||||
* Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
|
|
@ -584,11 +597,11 @@ export interface GoogleGenerativeAILanguageModel {
|
|||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface GoogleVertexLanguageModel {
|
||||
export interface GoogleGenerativeAILanguageModel {
|
||||
/**
|
||||
* Google Vertex AI Configuration
|
||||
* Google Generative AI Configuration
|
||||
*/
|
||||
provider: "google-vertex";
|
||||
provider: "google-generative-ai";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
|
|
@ -598,17 +611,9 @@ export interface GoogleVertexLanguageModel {
|
|||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable.
|
||||
* Optional API key to use with the model. Defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.
|
||||
*/
|
||||
region?: string;
|
||||
/**
|
||||
* Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.
|
||||
*/
|
||||
credentials?:
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
|
|
@ -668,3 +673,181 @@ export interface GoogleVertexAnthropicLanguageModel {
|
|||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface GoogleVertexLanguageModel {
|
||||
/**
|
||||
* Google Vertex AI Configuration
|
||||
*/
|
||||
provider: "google-vertex";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.
|
||||
*/
|
||||
region?: string;
|
||||
/**
|
||||
* Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.
|
||||
*/
|
||||
credentials?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface MistralLanguageModel {
|
||||
/**
|
||||
* Mistral AI Configuration
|
||||
*/
|
||||
provider: "mistral";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface OpenAILanguageModel {
|
||||
/**
|
||||
* OpenAI Configuration
|
||||
*/
|
||||
provider: "openai";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface OpenRouterLanguageModel {
|
||||
/**
|
||||
* OpenRouter Configuration
|
||||
*/
|
||||
provider: "openrouter";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface XaiLanguageModel {
|
||||
/**
|
||||
* xAI Configuration
|
||||
*/
|
||||
provider: "xai";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,71 +3,6 @@ const schema = {
|
|||
"type": "object",
|
||||
"title": "LanguageModel",
|
||||
"definitions": {
|
||||
"OpenAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openai",
|
||||
"description": "OpenAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"gpt-4.1",
|
||||
"o4-mini",
|
||||
"o3",
|
||||
"o3-deep-research"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AmazonBedrockLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -226,6 +161,132 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AzureLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "azure",
|
||||
"description": "Azure Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The deployment name of the Azure model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"resourceName": {
|
||||
"type": "string",
|
||||
"description": "Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"apiVersion": {
|
||||
"type": "string",
|
||||
"description": "Sets a custom api version. Defaults to `preview`."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Use a different URL prefix for API calls. Either this or `resourceName` can be used."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"DeepSeekLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "deepseek",
|
||||
"description": "DeepSeek Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleGenerativeAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -285,6 +346,81 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexAnthropicLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -362,39 +498,23 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexAnthropicLanguageModel": {
|
||||
"MistralLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
"const": "mistral",
|
||||
"description": "Mistral AI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
|
|
@ -436,10 +556,8 @@ const schema = {
|
|||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
},
|
||||
"OpenAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
|
|
@ -504,6 +622,130 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"OpenRouterLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openrouter",
|
||||
"description": "OpenRouter Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"XaiLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "xai",
|
||||
"description": "xAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"grok-beta",
|
||||
"grok-vision-beta"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -662,6 +904,132 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "azure",
|
||||
"description": "Azure Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The deployment name of the Azure model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"resourceName": {
|
||||
"type": "string",
|
||||
"description": "Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"apiVersion": {
|
||||
"type": "string",
|
||||
"description": "Sets a custom api version. Defaults to `preview`."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Use a different URL prefix for API calls. Either this or `resourceName` can be used."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "deepseek",
|
||||
"description": "DeepSeek Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -721,6 +1089,81 @@ const schema = {
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -802,35 +1245,206 @@ const schema = {
|
|||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
"const": "mistral",
|
||||
"description": "Mistral AI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openai",
|
||||
"description": "OpenAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
"gpt-4.1",
|
||||
"o4-mini",
|
||||
"o3",
|
||||
"o3-deep-research"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openrouter",
|
||||
"description": "OpenRouter Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "The name of the secret that contains the token."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"secret"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"env": {
|
||||
"type": "string",
|
||||
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"env"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "xai",
|
||||
"description": "xAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"grok-beta",
|
||||
"grok-vision-beta"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"description": "Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
|
|
|
|||
|
|
@ -1,47 +1,18 @@
|
|||
// THIS IS A AUTO-GENERATED FILE. DO NOT MODIFY MANUALLY!
|
||||
|
||||
export type LanguageModel =
|
||||
| OpenAILanguageModel
|
||||
| AmazonBedrockLanguageModel
|
||||
| AnthropicLanguageModel
|
||||
| AzureLanguageModel
|
||||
| DeepSeekLanguageModel
|
||||
| GoogleGenerativeAILanguageModel
|
||||
| GoogleVertexAnthropicLanguageModel
|
||||
| GoogleVertexLanguageModel
|
||||
| GoogleVertexAnthropicLanguageModel;
|
||||
| MistralLanguageModel
|
||||
| OpenAILanguageModel
|
||||
| OpenRouterLanguageModel
|
||||
| XaiLanguageModel;
|
||||
|
||||
export interface OpenAILanguageModel {
|
||||
/**
|
||||
* OpenAI Configuration
|
||||
*/
|
||||
provider: "openai";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface AmazonBedrockLanguageModel {
|
||||
/**
|
||||
* Amazon Bedrock Configuration
|
||||
|
|
@ -130,11 +101,53 @@ export interface AnthropicLanguageModel {
|
|||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface GoogleGenerativeAILanguageModel {
|
||||
export interface AzureLanguageModel {
|
||||
/**
|
||||
* Google Generative AI Configuration
|
||||
* Azure Configuration
|
||||
*/
|
||||
provider: "google-generative-ai";
|
||||
provider: "azure";
|
||||
/**
|
||||
* The deployment name of the Azure model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable.
|
||||
*/
|
||||
resourceName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Sets a custom api version. Defaults to `preview`.
|
||||
*/
|
||||
apiVersion?: string;
|
||||
/**
|
||||
* Use a different URL prefix for API calls. Either this or `resourceName` can be used.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface DeepSeekLanguageModel {
|
||||
/**
|
||||
* DeepSeek Configuration
|
||||
*/
|
||||
provider: "deepseek";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
|
|
@ -144,7 +157,7 @@ export interface GoogleGenerativeAILanguageModel {
|
|||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.
|
||||
* Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
|
|
@ -164,11 +177,11 @@ export interface GoogleGenerativeAILanguageModel {
|
|||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface GoogleVertexLanguageModel {
|
||||
export interface GoogleGenerativeAILanguageModel {
|
||||
/**
|
||||
* Google Vertex AI Configuration
|
||||
* Google Generative AI Configuration
|
||||
*/
|
||||
provider: "google-vertex";
|
||||
provider: "google-generative-ai";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
|
|
@ -178,17 +191,9 @@ export interface GoogleVertexLanguageModel {
|
|||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable.
|
||||
* Optional API key to use with the model. Defaults to the `GOOGLE_GENERATIVE_AI_API_KEY` environment variable.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.
|
||||
*/
|
||||
region?: string;
|
||||
/**
|
||||
* Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.
|
||||
*/
|
||||
credentials?:
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
|
|
@ -248,3 +253,181 @@ export interface GoogleVertexAnthropicLanguageModel {
|
|||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface GoogleVertexLanguageModel {
|
||||
/**
|
||||
* Google Vertex AI Configuration
|
||||
*/
|
||||
provider: "google-vertex";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.
|
||||
*/
|
||||
region?: string;
|
||||
/**
|
||||
* Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.
|
||||
*/
|
||||
credentials?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface MistralLanguageModel {
|
||||
/**
|
||||
* Mistral AI Configuration
|
||||
*/
|
||||
provider: "mistral";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface OpenAILanguageModel {
|
||||
/**
|
||||
* OpenAI Configuration
|
||||
*/
|
||||
provider: "openai";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface OpenRouterLanguageModel {
|
||||
/**
|
||||
* OpenRouter Configuration
|
||||
*/
|
||||
provider: "openrouter";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
export interface XaiLanguageModel {
|
||||
/**
|
||||
* xAI Configuration
|
||||
*/
|
||||
provider: "xai";
|
||||
/**
|
||||
* The name of the language model.
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Optional display name.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable.
|
||||
*/
|
||||
token?:
|
||||
| {
|
||||
/**
|
||||
* The name of the secret that contains the token.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The name of the environment variable that contains the token. Only supported in declarative connection configs.
|
||||
*/
|
||||
env: string;
|
||||
};
|
||||
/**
|
||||
* Optional base URL.
|
||||
*/
|
||||
baseUrl?: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,10 +14,14 @@
|
|||
"dependencies": {
|
||||
"@ai-sdk/amazon-bedrock": "3.0.0-beta.7",
|
||||
"@ai-sdk/anthropic": "2.0.0-beta.8",
|
||||
"@ai-sdk/azure": "2.0.0-beta.11",
|
||||
"@ai-sdk/deepseek": "1.0.0-beta.8",
|
||||
"@ai-sdk/google": "2.0.0-beta.11",
|
||||
"@ai-sdk/google-vertex": "3.0.0-beta.15",
|
||||
"@ai-sdk/mistral": "2.0.0-beta.6",
|
||||
"@ai-sdk/openai": "2.0.0-beta.9",
|
||||
"@ai-sdk/react": "2.0.0-beta.21",
|
||||
"@ai-sdk/xai": "2.0.0-beta.10",
|
||||
"@auth/prisma-adapter": "^2.7.4",
|
||||
"@codemirror/commands": "^6.6.0",
|
||||
"@codemirror/lang-cpp": "^6.0.2",
|
||||
|
|
@ -49,6 +53,7 @@
|
|||
"@hookform/resolvers": "^3.9.0",
|
||||
"@iconify/react": "^5.1.0",
|
||||
"@iizukak/codemirror-lang-wgsl": "^0.3.0",
|
||||
"@openrouter/ai-sdk-provider": "1.0.0-beta.5",
|
||||
"@opentelemetry/api-logs": "^0.203.0",
|
||||
"@opentelemetry/instrumentation": "^0.203.0",
|
||||
"@opentelemetry/sdk-logs": "^0.203.0",
|
||||
|
|
|
|||
1
packages/web/public/azureai.svg
Normal file
1
packages/web/public/azureai.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>AzureAI</title><path clip-rule="evenodd" d="M16.233 0c.713 0 1.345.551 1.572 1.329.227.778 1.555 5.59 1.555 5.59v9.562h-4.813L14.645 0h1.588z" fill="url(#lobe-icons-azureai-fill-0)" fill-rule="evenodd"></path><path d="M23.298 7.47c0-.34-.275-.6-.6-.6h-2.835a3.617 3.617 0 00-3.614 3.615v5.996h3.436a3.617 3.617 0 003.613-3.614V7.47z" fill="url(#lobe-icons-azureai-fill-1)"></path><path clip-rule="evenodd" d="M16.233 0a.982.982 0 00-.989.989l-.097 18.198A4.814 4.814 0 0110.334 24H1.6a.597.597 0 01-.567-.794l7-19.981A4.819 4.819 0 0112.57 0h3.679-.016z" fill="url(#lobe-icons-azureai-fill-2)" fill-rule="evenodd"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-azureai-fill-0" x1="18.242" x2="14.191" y1="16.837" y2=".616"><stop stop-color="#712575"></stop><stop offset=".09" stop-color="#9A2884"></stop><stop offset=".18" stop-color="#BF2C92"></stop><stop offset=".27" stop-color="#DA2E9C"></stop><stop offset=".34" stop-color="#EB30A2"></stop><stop offset=".4" stop-color="#F131A5"></stop><stop offset=".5" stop-color="#EC30A3"></stop><stop offset=".61" stop-color="#DF2F9E"></stop><stop offset=".72" stop-color="#C92D96"></stop><stop offset=".83" stop-color="#AA2A8A"></stop><stop offset=".95" stop-color="#83267C"></stop><stop offset="1" stop-color="#712575"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-azureai-fill-1" x1="19.782" x2="19.782" y1=".34" y2="23.222"><stop stop-color="#DA7ED0"></stop><stop offset=".08" stop-color="#B17BD5"></stop><stop offset=".19" stop-color="#8778DB"></stop><stop offset=".3" stop-color="#6276E1"></stop><stop offset=".41" stop-color="#4574E5"></stop><stop offset=".54" stop-color="#2E72E8"></stop><stop offset=".67" stop-color="#1D71EB"></stop><stop offset=".81" stop-color="#1471EC"></stop><stop offset="1" stop-color="#1171ED"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-azureai-fill-2" x1="18.404" x2="3.236" y1=".859" y2="25.183"><stop stop-color="#DA7ED0"></stop><stop offset=".05" stop-color="#B77BD4"></stop><stop offset=".11" stop-color="#9079DA"></stop><stop offset=".18" stop-color="#6E77DF"></stop><stop offset=".25" stop-color="#5175E3"></stop><stop offset=".33" stop-color="#3973E7"></stop><stop offset=".42" stop-color="#2772E9"></stop><stop offset=".54" stop-color="#1A71EB"></stop><stop offset=".68" stop-color="#1371EC"></stop><stop offset="1" stop-color="#1171ED"></stop></linearGradient></defs></svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
1
packages/web/public/deepseek.svg
Normal file
1
packages/web/public/deepseek.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>DeepSeek</title><path d="M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z" fill="#4D6BFE"></path></svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
1
packages/web/public/mistral.svg
Normal file
1
packages/web/public/mistral.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Mistral</title><path d="M3.428 3.4h3.429v3.428H3.428V3.4zm13.714 0h3.43v3.428h-3.43V3.4z" fill="gold"></path><path d="M3.428 6.828h6.857v3.429H3.429V6.828zm10.286 0h6.857v3.429h-6.857V6.828z" fill="#FFAF00"></path><path d="M3.428 10.258h17.144v3.428H3.428v-3.428z" fill="#FF8205"></path><path d="M3.428 13.686h3.429v3.428H3.428v-3.428zm6.858 0h3.429v3.428h-3.429v-3.428zm6.856 0h3.43v3.428h-3.43v-3.428z" fill="#FA500F"></path><path d="M0 17.114h10.286v3.429H0v-3.429zm13.714 0H24v3.429H13.714v-3.429z" fill="#E10500"></path></svg>
|
||||
|
After Width: | Height: | Size: 655 B |
1
packages/web/public/openrouter.svg
Normal file
1
packages/web/public/openrouter.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>OpenRouter</title><path d="M16.804 1.957l7.22 4.105v.087L16.73 10.21l.017-2.117-.821-.03c-1.059-.028-1.611.002-2.268.11-1.064.175-2.038.577-3.147 1.352L8.345 11.03c-.284.195-.495.336-.68.455l-.515.322-.397.234.385.23.53.338c.476.314 1.17.796 2.701 1.866 1.11.775 2.083 1.177 3.147 1.352l.3.045c.694.091 1.375.094 2.825.033l.022-2.159 7.22 4.105v.087L16.589 22l.014-1.862-.635.022c-1.386.042-2.137.002-3.138-.162-1.694-.28-3.26-.926-4.881-2.059l-2.158-1.5a21.997 21.997 0 00-.755-.498l-.467-.28a55.927 55.927 0 00-.76-.43C2.908 14.73.563 14.116 0 14.116V9.888l.14.004c.564-.007 2.91-.622 3.809-1.124l1.016-.58.438-.274c.428-.28 1.072-.726 2.686-1.853 1.621-1.133 3.186-1.78 4.881-2.059 1.152-.19 1.974-.213 3.814-.138l.02-1.907z"></path></svg>
|
||||
|
After Width: | Height: | Size: 906 B |
1
packages/web/public/xai.svg
Normal file
1
packages/web/public/xai.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Grok</title><path d="M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z"></path></svg>
|
||||
|
After Width: | Height: | Size: 372 B |
|
|
@ -14,12 +14,17 @@ import { createGoogleGenerativeAI } from '@ai-sdk/google';
|
|||
import { createVertex } from '@ai-sdk/google-vertex';
|
||||
import { createVertexAnthropic } from '@ai-sdk/google-vertex/anthropic';
|
||||
import { createOpenAI, OpenAIResponsesProviderOptions } from "@ai-sdk/openai";
|
||||
import { createMistral } from '@ai-sdk/mistral';
|
||||
import { createXai } from '@ai-sdk/xai';
|
||||
import { LanguageModelV2 as AISDKLanguageModelV2 } from "@ai-sdk/provider";
|
||||
import * as Sentry from "@sentry/nextjs";
|
||||
import { getTokenFromConfig } from "@sourcebot/crypto";
|
||||
import { OrgRole } from "@sourcebot/db";
|
||||
import { createLogger } from "@sourcebot/logger";
|
||||
import { LanguageModel } from "@sourcebot/schemas/v3/index.type";
|
||||
import { createAzure } from '@ai-sdk/azure';
|
||||
import { createDeepSeek } from '@ai-sdk/deepseek';
|
||||
import { createOpenRouter } from '@openrouter/ai-sdk-provider';
|
||||
import {
|
||||
createUIMessageStream,
|
||||
createUIMessageStreamResponse,
|
||||
|
|
@ -122,7 +127,7 @@ const chatHandler = ({ messages, id, selectedRepos, languageModelId }: ChatHandl
|
|||
// corresponding config in `config.json`.
|
||||
const languageModelConfig =
|
||||
(await _getConfiguredLanguageModelsFull())
|
||||
.find((model) => model.model === languageModelId);
|
||||
.find((model) => model.model === languageModelId);
|
||||
|
||||
if (!languageModelConfig) {
|
||||
return serviceErrorResponse({
|
||||
|
|
@ -296,14 +301,28 @@ const getAISDKLanguageModelAndOptions = async (config: LanguageModel, orgId: num
|
|||
const { provider, model: modelId } = config;
|
||||
|
||||
switch (provider) {
|
||||
case 'amazon-bedrock': {
|
||||
const aws = createAmazonBedrock({
|
||||
baseURL: config.baseUrl,
|
||||
region: config.region ?? env.AWS_REGION,
|
||||
accessKeyId: config.accessKeyId
|
||||
? await getTokenFromConfig(config.accessKeyId, orgId, prisma)
|
||||
: env.AWS_ACCESS_KEY_ID,
|
||||
secretAccessKey: config.accessKeySecret
|
||||
? await getTokenFromConfig(config.accessKeySecret, orgId, prisma)
|
||||
: env.AWS_SECRET_ACCESS_KEY,
|
||||
});
|
||||
|
||||
return {
|
||||
model: aws(modelId),
|
||||
};
|
||||
}
|
||||
case 'anthropic': {
|
||||
const anthropic = createAnthropic({
|
||||
baseURL: config.baseUrl,
|
||||
...(config.token ? {
|
||||
apiKey: (await getTokenFromConfig(config.token, orgId, prisma)),
|
||||
} : {
|
||||
apiKey: env.ANTHROPIC_API_KEY,
|
||||
}),
|
||||
apiKey: config.token
|
||||
? await getTokenFromConfig(config.token, orgId, prisma)
|
||||
: env.ANTHROPIC_API_KEY,
|
||||
});
|
||||
|
||||
return {
|
||||
|
|
@ -322,59 +341,40 @@ const getAISDKLanguageModelAndOptions = async (config: LanguageModel, orgId: num
|
|||
},
|
||||
};
|
||||
}
|
||||
case 'openai': {
|
||||
const openai = createOpenAI({
|
||||
case 'azure': {
|
||||
const azure = createAzure({
|
||||
baseURL: config.baseUrl,
|
||||
...(config.token ? {
|
||||
apiKey: (await getTokenFromConfig(config.token, orgId, prisma)),
|
||||
} : {
|
||||
apiKey: env.OPENAI_API_KEY,
|
||||
}),
|
||||
apiKey: config.token ? (await getTokenFromConfig(config.token, orgId, prisma)) : env.AZURE_API_KEY,
|
||||
apiVersion: config.apiVersion,
|
||||
resourceName: config.resourceName ?? env.AZURE_RESOURCE_NAME,
|
||||
});
|
||||
|
||||
return {
|
||||
model: openai(modelId),
|
||||
providerOptions: {
|
||||
openai: {
|
||||
reasoningEffort: 'high'
|
||||
} satisfies OpenAIResponsesProviderOptions,
|
||||
},
|
||||
model: azure(modelId),
|
||||
};
|
||||
}
|
||||
case 'deepseek': {
|
||||
const deepseek = createDeepSeek({
|
||||
baseURL: config.baseUrl,
|
||||
apiKey: config.token ? (await getTokenFromConfig(config.token, orgId, prisma)) : env.DEEPSEEK_API_KEY,
|
||||
});
|
||||
|
||||
return {
|
||||
model: deepseek(modelId),
|
||||
};
|
||||
}
|
||||
case 'google-generative-ai': {
|
||||
const google = createGoogleGenerativeAI({
|
||||
baseURL: config.baseUrl,
|
||||
...(config.token ? {
|
||||
apiKey: (await getTokenFromConfig(config.token, orgId, prisma)),
|
||||
} : {
|
||||
apiKey: env.GOOGLE_GENERATIVE_AI_API_KEY,
|
||||
}),
|
||||
apiKey: config.token
|
||||
? await getTokenFromConfig(config.token, orgId, prisma)
|
||||
: env.GOOGLE_GENERATIVE_AI_API_KEY,
|
||||
});
|
||||
|
||||
return {
|
||||
model: google(modelId),
|
||||
};
|
||||
}
|
||||
case 'amazon-bedrock': {
|
||||
const aws = createAmazonBedrock({
|
||||
baseURL: config.baseUrl,
|
||||
region: config.region ?? env.AWS_REGION,
|
||||
...(config.accessKeyId ? {
|
||||
accessKeyId: (await getTokenFromConfig(config.accessKeyId, orgId, prisma)),
|
||||
} : {
|
||||
accessKeyId: env.AWS_ACCESS_KEY_ID,
|
||||
}),
|
||||
...(config.accessKeySecret ? {
|
||||
secretAccessKey: (await getTokenFromConfig(config.accessKeySecret, orgId, prisma)),
|
||||
} : {
|
||||
secretAccessKey: env.AWS_SECRET_ACCESS_KEY,
|
||||
}),
|
||||
});
|
||||
|
||||
return {
|
||||
model: aws(modelId),
|
||||
};
|
||||
}
|
||||
case 'google-vertex': {
|
||||
const vertex = createVertex({
|
||||
project: config.project ?? env.GOOGLE_VERTEX_PROJECT,
|
||||
|
|
@ -405,6 +405,59 @@ const getAISDKLanguageModelAndOptions = async (config: LanguageModel, orgId: num
|
|||
model: vertexAnthropic(modelId),
|
||||
};
|
||||
}
|
||||
case 'mistral': {
|
||||
const mistral = createMistral({
|
||||
baseURL: config.baseUrl,
|
||||
apiKey: config.token
|
||||
? await getTokenFromConfig(config.token, orgId, prisma)
|
||||
: env.MISTRAL_API_KEY,
|
||||
});
|
||||
|
||||
return {
|
||||
model: mistral(modelId),
|
||||
};
|
||||
}
|
||||
case 'openai': {
|
||||
const openai = createOpenAI({
|
||||
baseURL: config.baseUrl,
|
||||
apiKey: config.token
|
||||
? await getTokenFromConfig(config.token, orgId, prisma)
|
||||
: env.OPENAI_API_KEY,
|
||||
});
|
||||
|
||||
return {
|
||||
model: openai(modelId),
|
||||
providerOptions: {
|
||||
openai: {
|
||||
reasoningEffort: 'high'
|
||||
} satisfies OpenAIResponsesProviderOptions,
|
||||
},
|
||||
};
|
||||
}
|
||||
case 'openrouter': {
|
||||
const openrouter = createOpenRouter({
|
||||
baseURL: config.baseUrl,
|
||||
apiKey: config.token
|
||||
? await getTokenFromConfig(config.token, orgId, prisma)
|
||||
: env.OPENROUTER_API_KEY,
|
||||
});
|
||||
|
||||
return {
|
||||
model: openrouter(modelId),
|
||||
};
|
||||
}
|
||||
case 'xai': {
|
||||
const xai = createXai({
|
||||
baseURL: config.baseUrl,
|
||||
apiKey: config.token
|
||||
? await getTokenFromConfig(config.token, orgId, prisma)
|
||||
: env.XAI_API_KEY,
|
||||
});
|
||||
|
||||
return {
|
||||
model: xai(modelId),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,19 @@ export const env = createEnv({
|
|||
ANTHROPIC_API_KEY: z.string().optional(),
|
||||
ANTHROPIC_THINKING_BUDGET_TOKENS: numberSchema.default(12000),
|
||||
|
||||
AZURE_API_KEY: z.string().optional(),
|
||||
AZURE_RESOURCE_NAME: z.string().optional(),
|
||||
|
||||
DEEPSEEK_API_KEY: z.string().optional(),
|
||||
|
||||
OPENAI_API_KEY: z.string().optional(),
|
||||
|
||||
OPENROUTER_API_KEY: z.string().optional(),
|
||||
|
||||
XAI_API_KEY: z.string().optional(),
|
||||
|
||||
MISTRAL_API_KEY: z.string().optional(),
|
||||
|
||||
GOOGLE_GENERATIVE_AI_API_KEY: z.string().optional(),
|
||||
GOOGLE_VERTEX_PROJECT: z.string().optional(),
|
||||
GOOGLE_VERTEX_REGION: z.string().default('us-central1'),
|
||||
|
|
|
|||
|
|
@ -5,9 +5,14 @@ import { LanguageModelProvider } from "../../types";
|
|||
import { cn } from "@/lib/utils";
|
||||
import Image from "next/image";
|
||||
import anthropicLogo from "@/public/anthropic.svg";
|
||||
import azureAiLogo from "@/public/azureai.svg";
|
||||
import bedrockLogo from "@/public/bedrock.svg";
|
||||
import geminiLogo from "@/public/gemini.svg";
|
||||
import openaiLogo from "@/public/openai.svg";
|
||||
import deepseekLogo from "@/public/deepseek.svg";
|
||||
import mistralLogo from "@/public/mistral.svg";
|
||||
import openrouterLogo from "@/public/openrouter.svg";
|
||||
import xaiLogo from "@/public/xai.svg";
|
||||
|
||||
interface ModelProviderLogoProps {
|
||||
provider: LanguageModelProvider;
|
||||
|
|
@ -30,6 +35,16 @@ export const ModelProviderLogo = ({
|
|||
src: anthropicLogo,
|
||||
className: 'dark:invert'
|
||||
};
|
||||
case 'azure':
|
||||
return {
|
||||
src: azureAiLogo,
|
||||
className: 'w-3.5 h-3.5'
|
||||
};
|
||||
case 'deepseek':
|
||||
return {
|
||||
src: deepseekLogo,
|
||||
className: 'w-3.5 h-3.5'
|
||||
};
|
||||
case 'openai':
|
||||
return {
|
||||
src: openaiLogo,
|
||||
|
|
@ -46,6 +61,21 @@ export const ModelProviderLogo = ({
|
|||
src: anthropicLogo,
|
||||
className: 'dark:invert'
|
||||
};
|
||||
case 'mistral':
|
||||
return {
|
||||
src: mistralLogo,
|
||||
className: 'w-3.5 h-3.5'
|
||||
};
|
||||
case 'openrouter':
|
||||
return {
|
||||
src: openrouterLogo,
|
||||
className: 'dark:invert w-3.5 h-3.5'
|
||||
};
|
||||
case 'xai':
|
||||
return {
|
||||
src: xaiLogo,
|
||||
className: 'dark:invert w-3.5 h-3.5'
|
||||
};
|
||||
}
|
||||
}, [provider]);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,44 +2,6 @@
|
|||
"type": "object",
|
||||
"title": "LanguageModel",
|
||||
"definitions": {
|
||||
"OpenAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openai",
|
||||
"description": "OpenAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"gpt-4.1",
|
||||
"o4-mini",
|
||||
"o3",
|
||||
"o3-deep-research"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"$ref": "./shared.json#/definitions/Token",
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AmazonBedrockLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -117,6 +79,78 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AzureLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "azure",
|
||||
"description": "Azure Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The deployment name of the Azure model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"resourceName": {
|
||||
"type": "string",
|
||||
"description": "Azure resource name. Defaults to the `AZURE_RESOURCE_NAME` environment variable."
|
||||
},
|
||||
"token": {
|
||||
"$ref": "./shared.json#/definitions/Token",
|
||||
"description": "Optional API key to use with the model. Defaults to the `AZURE_API_KEY` environment variable."
|
||||
},
|
||||
"apiVersion": {
|
||||
"type": "string",
|
||||
"description": "Sets a custom api version. Defaults to `preview`."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Use a different URL prefix for API calls. Either this or `resourceName` can be used."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"DeepSeekLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "deepseek",
|
||||
"description": "DeepSeek Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"$ref": "./shared.json#/definitions/Token",
|
||||
"description": "Optional API key to use with the model. Defaults to the `DEEPSEEK_API_KEY` environment variable."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleGenerativeAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -149,6 +183,54 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexAnthropicLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"$ref": "./shared.json#/definitions/Token",
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -199,40 +281,130 @@
|
|||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"GoogleVertexAnthropicLanguageModel": {
|
||||
"MistralLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "google-vertex-anthropic",
|
||||
"description": "Google Vertex AI Anthropic Configuration"
|
||||
"const": "mistral",
|
||||
"description": "Mistral AI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the Anthropic language model running on Google Vertex.",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"$ref": "./shared.json#/definitions/Token",
|
||||
"description": "Optional API key to use with the model. Defaults to the `MISTRAL_API_KEY` environment variable."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"OpenAILanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openai",
|
||||
"description": "OpenAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"claude-sonnet-4"
|
||||
"gpt-4.1",
|
||||
"o4-mini",
|
||||
"o3",
|
||||
"o3-deep-research"
|
||||
]
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"project": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
|
||||
"token": {
|
||||
"$ref": "./shared.json#/definitions/Token",
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENAI_API_KEY` environment variable."
|
||||
},
|
||||
"region": {
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"OpenRouterLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "openrouter",
|
||||
"description": "OpenRouter Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model."
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"$ref": "./shared.json#/definitions/Token",
|
||||
"description": "Optional API key to use with the model. Defaults to the `OPENROUTER_API_KEY` environment variable."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"format": "url",
|
||||
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
|
||||
"description": "Optional base URL."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"provider",
|
||||
"model"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"XaiLanguageModel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"provider": {
|
||||
"const": "xai",
|
||||
"description": "xAI Configuration"
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"description": "The name of the language model.",
|
||||
"examples": [
|
||||
"us-central1",
|
||||
"us-east1",
|
||||
"europe-west1"
|
||||
"grok-beta",
|
||||
"grok-vision-beta"
|
||||
]
|
||||
},
|
||||
"credentials": {
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "Optional display name."
|
||||
},
|
||||
"token": {
|
||||
"$ref": "./shared.json#/definitions/Token",
|
||||
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials."
|
||||
"description": "Optional API key to use with the model. Defaults to the `XAI_API_KEY` environment variable."
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
|
|
@ -249,23 +421,38 @@
|
|||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/definitions/OpenAILanguageModel"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/AmazonBedrockLanguageModel"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/AnthropicLanguageModel"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/AzureLanguageModel"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/DeepSeekLanguageModel"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/GoogleGenerativeAILanguageModel"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/GoogleVertexAnthropicLanguageModel"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/GoogleVertexLanguageModel"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/GoogleVertexAnthropicLanguageModel"
|
||||
"$ref": "#/definitions/MistralLanguageModel"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/OpenAILanguageModel"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/OpenRouterLanguageModel"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/XaiLanguageModel"
|
||||
}
|
||||
]
|
||||
}
|
||||
90
yarn.lock
90
yarn.lock
|
|
@ -32,6 +32,32 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ai-sdk/azure@npm:2.0.0-beta.11":
|
||||
version: 2.0.0-beta.11
|
||||
resolution: "@ai-sdk/azure@npm:2.0.0-beta.11"
|
||||
dependencies:
|
||||
"@ai-sdk/openai": "npm:2.0.0-beta.11"
|
||||
"@ai-sdk/provider": "npm:2.0.0-beta.1"
|
||||
"@ai-sdk/provider-utils": "npm:3.0.0-beta.5"
|
||||
peerDependencies:
|
||||
zod: ^3.25.76 || ^4
|
||||
checksum: 10c0/3de3bdfde6f604d6ed7e199e15acaed4844e7b59cadc99a662dbaea8bdd509198ab734b8fe41183b39ca73f24ca886cd90b924991929e6b81e6ec039328539b1
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ai-sdk/deepseek@npm:1.0.0-beta.8":
|
||||
version: 1.0.0-beta.8
|
||||
resolution: "@ai-sdk/deepseek@npm:1.0.0-beta.8"
|
||||
dependencies:
|
||||
"@ai-sdk/openai-compatible": "npm:1.0.0-beta.8"
|
||||
"@ai-sdk/provider": "npm:2.0.0-beta.1"
|
||||
"@ai-sdk/provider-utils": "npm:3.0.0-beta.5"
|
||||
peerDependencies:
|
||||
zod: ^3.25.76 || ^4
|
||||
checksum: 10c0/4ff14a3032dcbf931db0f8b02e992ffdee541a2eca1aa49ffae4d56d9f9a14f5c4cc6fbbee03e1841964d00dbe9f7fa55c78ca7ea2c33865bf681d72ac0cf26b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ai-sdk/gateway@npm:1.0.0-beta.8":
|
||||
version: 1.0.0-beta.8
|
||||
resolution: "@ai-sdk/gateway@npm:1.0.0-beta.8"
|
||||
|
|
@ -83,6 +109,42 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ai-sdk/mistral@npm:2.0.0-beta.6":
|
||||
version: 2.0.0-beta.6
|
||||
resolution: "@ai-sdk/mistral@npm:2.0.0-beta.6"
|
||||
dependencies:
|
||||
"@ai-sdk/provider": "npm:2.0.0-beta.1"
|
||||
"@ai-sdk/provider-utils": "npm:3.0.0-beta.5"
|
||||
peerDependencies:
|
||||
zod: ^3.25.76 || ^4
|
||||
checksum: 10c0/075cbfc709b5c9b1af69db05c8f8f9e3edfe0caadaad72f26ceb4ee7022b785b8af62e982cfc6c496dff1386da0dd9742d675c55a14f348aff492bed52a310e5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ai-sdk/openai-compatible@npm:1.0.0-beta.8":
|
||||
version: 1.0.0-beta.8
|
||||
resolution: "@ai-sdk/openai-compatible@npm:1.0.0-beta.8"
|
||||
dependencies:
|
||||
"@ai-sdk/provider": "npm:2.0.0-beta.1"
|
||||
"@ai-sdk/provider-utils": "npm:3.0.0-beta.5"
|
||||
peerDependencies:
|
||||
zod: ^3.25.76 || ^4
|
||||
checksum: 10c0/047f044bf0da9608e09073957916373bd39760ec00f498ba0c4a597ec70ba9eb4ef31f06b21b363b3c1ba775f64fcc46d41b60a171e0e99250824817ecb19ba8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ai-sdk/openai@npm:2.0.0-beta.11":
|
||||
version: 2.0.0-beta.11
|
||||
resolution: "@ai-sdk/openai@npm:2.0.0-beta.11"
|
||||
dependencies:
|
||||
"@ai-sdk/provider": "npm:2.0.0-beta.1"
|
||||
"@ai-sdk/provider-utils": "npm:3.0.0-beta.5"
|
||||
peerDependencies:
|
||||
zod: ^3.25.76 || ^4
|
||||
checksum: 10c0/c48664c651cd50c10db5b18b963e39a964d5d69649c24350bff5cca3f5b02ef4f75531ff93a51e8463db91023b050d7f415c81ea0fd48eeb5a55bb5233b151a6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ai-sdk/openai@npm:2.0.0-beta.9":
|
||||
version: 2.0.0-beta.9
|
||||
resolution: "@ai-sdk/openai@npm:2.0.0-beta.9"
|
||||
|
|
@ -150,6 +212,19 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@ai-sdk/xai@npm:2.0.0-beta.10":
|
||||
version: 2.0.0-beta.10
|
||||
resolution: "@ai-sdk/xai@npm:2.0.0-beta.10"
|
||||
dependencies:
|
||||
"@ai-sdk/openai-compatible": "npm:1.0.0-beta.8"
|
||||
"@ai-sdk/provider": "npm:2.0.0-beta.1"
|
||||
"@ai-sdk/provider-utils": "npm:3.0.0-beta.5"
|
||||
peerDependencies:
|
||||
zod: ^3.25.76 || ^4
|
||||
checksum: 10c0/8f6251785892db79306c95cdde38cbede40c4c73c354bfbdc78262fe2b6736646d0ce4186028e81d0ea59cdf6e584f53afdc2a3e3299e5df754d59c9ad828688
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@alloc/quick-lru@npm:^5.2.0":
|
||||
version: 5.2.0
|
||||
resolution: "@alloc/quick-lru@npm:5.2.0"
|
||||
|
|
@ -2995,6 +3070,16 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@openrouter/ai-sdk-provider@npm:1.0.0-beta.5":
|
||||
version: 1.0.0-beta.5
|
||||
resolution: "@openrouter/ai-sdk-provider@npm:1.0.0-beta.5"
|
||||
peerDependencies:
|
||||
ai: ^5.0.0-beta.12
|
||||
zod: ^3.24.1 || ^v4
|
||||
checksum: 10c0/0aa75b0d2c6dbfe938f38a3049d06c00b5784e5cd06364dc0a35b88f8cb73db75d723cfe45b5b12bc0916819976f83866f9cfc755a1c3efaf5b8ba3839a60eeb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@opentelemetry/api-logs@npm:0.203.0, @opentelemetry/api-logs@npm:^0.203.0":
|
||||
version: 0.203.0
|
||||
resolution: "@opentelemetry/api-logs@npm:0.203.0"
|
||||
|
|
@ -6452,10 +6537,14 @@ __metadata:
|
|||
dependencies:
|
||||
"@ai-sdk/amazon-bedrock": "npm:3.0.0-beta.7"
|
||||
"@ai-sdk/anthropic": "npm:2.0.0-beta.8"
|
||||
"@ai-sdk/azure": "npm:2.0.0-beta.11"
|
||||
"@ai-sdk/deepseek": "npm:1.0.0-beta.8"
|
||||
"@ai-sdk/google": "npm:2.0.0-beta.11"
|
||||
"@ai-sdk/google-vertex": "npm:3.0.0-beta.15"
|
||||
"@ai-sdk/mistral": "npm:2.0.0-beta.6"
|
||||
"@ai-sdk/openai": "npm:2.0.0-beta.9"
|
||||
"@ai-sdk/react": "npm:2.0.0-beta.21"
|
||||
"@ai-sdk/xai": "npm:2.0.0-beta.10"
|
||||
"@auth/prisma-adapter": "npm:^2.7.4"
|
||||
"@codemirror/commands": "npm:^6.6.0"
|
||||
"@codemirror/lang-cpp": "npm:^6.0.2"
|
||||
|
|
@ -6487,6 +6576,7 @@ __metadata:
|
|||
"@hookform/resolvers": "npm:^3.9.0"
|
||||
"@iconify/react": "npm:^5.1.0"
|
||||
"@iizukak/codemirror-lang-wgsl": "npm:^0.3.0"
|
||||
"@openrouter/ai-sdk-provider": "npm:1.0.0-beta.5"
|
||||
"@opentelemetry/api-logs": "npm:^0.203.0"
|
||||
"@opentelemetry/instrumentation": "npm:^0.203.0"
|
||||
"@opentelemetry/sdk-logs": "npm:^0.203.0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue