Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/docs/configuration/language-model-providers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,27 @@ The OpenAI compatible provider allows you to use any model that is compatible wi
}
```

### Requesty

[Requesty](https://requesty.ai) is an OpenAI-compatible LLM gateway. Models are referenced in `provider/model` format (e.g. `openai/gpt-4o-mini`). See the [Requesty docs](https://docs.requesty.ai).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Use second-person phrasing in this docs sentence.

Line 347 is written in third person (“Models are referenced…”). Reword it to address the reader directly.

✍️ Proposed edit
-[Requesty](https://requesty.ai) is an OpenAI-compatible LLM gateway. Models are referenced in `provider/model` format (e.g. `openai/gpt-4o-mini`). See the [Requesty docs](https://docs.requesty.ai).
+Use [Requesty](https://requesty.ai) as an OpenAI-compatible LLM gateway. You reference models in `provider/model` format (for example, `openai/gpt-4o-mini`). See the [Requesty docs](https://docs.requesty.ai).

As per coding guidelines, "Write documentation in second person ('you') and present tense."

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
[Requesty](https://requesty.ai) is an OpenAI-compatible LLM gateway. Models are referenced in `provider/model` format (e.g. `openai/gpt-4o-mini`). See the [Requesty docs](https://docs.requesty.ai).
Use [Requesty](https://requesty.ai) as an OpenAI-compatible LLM gateway. You reference models in `provider/model` format (for example, `openai/gpt-4o-mini`). See the [Requesty docs](https://docs.requesty.ai).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/docs/configuration/language-model-providers.mdx` at line 347, The
sentence in the Requesty provider description uses third-person phrasing; update
the copy in the language-model-providers docs to address the reader directly in
second person and present tense. Reword the “Models are referenced…” sentence so
it speaks to “you” while keeping the same meaning, and make sure the surrounding
Requesty description still reads naturally with the existing Requesty link and
examples.

Source: Coding guidelines


```json wrap icon="code" Example config with Requesty provider
{
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
"models": [
{
"provider": "requesty",
"model": "openai/gpt-4o-mini",
"displayName": "OPTIONAL_DISPLAY_NAME",
"token": {
"env": "REQUESTY_API_KEY"
},
"baseUrl": "OPTIONAL_BASE_URL"
}
]
}
```

### xAI

[Vercel AI SDK xAI Docs](https://ai-sdk.dev/providers/ai-sdk-providers/xai)
Expand Down
220 changes: 220 additions & 0 deletions docs/snippets/schemas/v3/index.schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3143,6 +3143,116 @@
],
"additionalProperties": false
},
"RequestyLanguageModel": {
"type": "object",
"properties": {
"provider": {
"const": "requesty",
"description": "Requesty Configuration"
},
"model": {
"type": "string",
"description": "The name of the language model in `provider/model` format.",
"examples": [
"openai/gpt-4o-mini"
]
},
"displayName": {
"type": "string",
"description": "Optional display name."
},
"token": {
"anyOf": [
{
"type": "object",
"properties": {
"env": {
"type": "string",
"description": "The name of the environment variable that contains the token."
}
},
"required": [
"env"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"googleCloudSecret": {
"type": "string",
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
}
},
"required": [
"googleCloudSecret"
],
"additionalProperties": false
}
],
"description": "Optional API key to use with the model. Defaults to the `REQUESTY_API_KEY` environment variable."
},
"baseUrl": {
"type": "string",
"format": "url",
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
"description": "Optional base URL. Defaults to `https://router.requesty.ai/v1`."
},
"temperature": {
"type": "number",
"description": "Optional temperature setting to use with the model."
},
"headers": {
"type": "object",
"description": "Optional headers to use with the model.",
"patternProperties": {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$": {
"anyOf": [
{
"type": "string"
},
{
"anyOf": [
{
"type": "object",
"properties": {
"env": {
"type": "string",
"description": "The name of the environment variable that contains the token."
}
},
"required": [
"env"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"googleCloudSecret": {
"type": "string",
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
}
},
"required": [
"googleCloudSecret"
],
"additionalProperties": false
}
]
}
]
}
},
"additionalProperties": false
}
},
"required": [
"provider",
"model"
],
"additionalProperties": false
},
"XaiLanguageModel": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -4709,6 +4819,116 @@
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"provider": {
"const": "requesty",
"description": "Requesty Configuration"
},
"model": {
"type": "string",
"description": "The name of the language model in `provider/model` format.",
"examples": [
"openai/gpt-4o-mini"
]
},
"displayName": {
"type": "string",
"description": "Optional display name."
},
"token": {
"anyOf": [
{
"type": "object",
"properties": {
"env": {
"type": "string",
"description": "The name of the environment variable that contains the token."
}
},
"required": [
"env"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"googleCloudSecret": {
"type": "string",
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
}
},
"required": [
"googleCloudSecret"
],
"additionalProperties": false
}
],
"description": "Optional API key to use with the model. Defaults to the `REQUESTY_API_KEY` environment variable."
},
"baseUrl": {
"type": "string",
"format": "url",
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
"description": "Optional base URL. Defaults to `https://router.requesty.ai/v1`."
},
"temperature": {
"type": "number",
"description": "Optional temperature setting to use with the model."
},
"headers": {
"type": "object",
"description": "Optional headers to use with the model.",
"patternProperties": {
"^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$": {
"anyOf": [
{
"type": "string"
},
{
"anyOf": [
{
"type": "object",
"properties": {
"env": {
"type": "string",
"description": "The name of the environment variable that contains the token."
}
},
"required": [
"env"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"googleCloudSecret": {
"type": "string",
"description": "The resource name of a Google Cloud secret. Must be in the format `projects/<project-id>/secrets/<secret-name>/versions/<version-id>`. See https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets"
}
},
"required": [
"googleCloudSecret"
],
"additionalProperties": false
}
]
}
]
}
},
"additionalProperties": false
}
},
"required": [
"provider",
"model"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
Expand Down
Loading