Agix’s OpenAI integration sends every chat request to OpenAI’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/manusapis/Agix/llms.txt
Use this file to discover all available pages before exploring further.
/chat/completions REST endpoint using a standard Bearer token for authentication. The same OpenAIProvider class also powers the OpenRouter and Custom Endpoint options, because all three share the same OpenAI-compatible API surface. Once you enter your API key in the sidebar and save, your chosen model is ready to answer questions about your spreadsheet data.
Default configuration
The default configuration registered inproviders.config.ts is:
gpt-4o-mini is the default because it offers a strong balance of speed and cost for the everyday spreadsheet tasks Agix handles. You can type a different model name into the Model field at any time without changing any default configuration.
Setting up OpenAI in the sidebar
Open the Agix sidebar
In Excel, click Home → Agix. In Google Sheets, open the Agix add-on from the Extensions menu.
Enter your API key
Paste your
sk-... key into the API Key field. Keys are stored in the Office document settings and never leave your device in plaintext.Choose a model (optional)
The default model is
gpt-4o-mini. Change it to gpt-4o or any other model name supported by your account.AIProviderConfig shape for OpenAI
Request parameters
OpenAIProvider.chat() forwards the following fields to the /chat/completions endpoint:
The model to use, e.g.
gpt-4o-mini or gpt-4o. Taken from the ChatRequest.The full conversation history, including any
system, user, and assistant turns.Controls response randomness. Agix uses
0.7 when the caller does not supply a value.Maximum tokens in the response. Omitted from the request when not specified, which lets OpenAI use its own default.
Always set to
false — Agix uses non-streaming responses.Response shape
A successful call returns aChatResponse:
usage object (prompt_tokens, completion_tokens, total_tokens).
Shared implementation with OpenRouter
OpenAI and OpenRouter both resolve to the sameOpenAIProvider class in the factory:
baseUrl and the model naming convention. This means any fix or improvement to OpenAIProvider applies to all three provider IDs automatically.