Skip to main content

AI plugin settings

These parameters define the AI plugin properties.

aiSettings.version

type: integer | default: 3

Defines the version of the AI SDK.

aiSettings.timeout

type: string | default: "5m"

Defines an AI proxy timeout (measured in minutes).

aiSettings.proxy

type: string | default: ""

Supports routing AI requests via proxy.

aiSettings.allowedCorsOrigins

type: string[] | default: ["https://onlyoffice.github.io","https://onlyoffice-plugins.github.io"]

Defines which external websites are permitted to make cross-origin requests to the server.

aiSettings.actions

type: object

Defines actions performed by AI, e.g., Chat, Summarization, Translation, TextAnalyze, ImageGeneration, OCR, Vision.

aiSettings.providers

type: object

Defines AI providers, e.g., OpenAI, Google Gemini, Anthropic, etc.

aiSettings.customProviders

type: object

Custom AI service providers configuration

aiSettings.models

type: object[] | default: []

Defines AI models, e.g., gemini-1.5-pro-latest, llama3.2:latest, etc.

Example

{
"aiSettings": {
"actions": {},
"models": [],
"providers": {},
"version": 3,
"timeout": "5m",
"allowedCorsOrigins": [
"https://onlyoffice.github.io",
"https://onlyoffice-plugins.github.io"
],
"proxy": ""
}
}