Connect to OpenAI-compatible local servers from Microsoft Excel and Word
On Microsoft Excel and Word, GPT for Work can connect to any locally running LLM server that provides an OpenAI-compatible API. Once connected, all models available on the local server become available to use in GPT for Work.
Depending on the model you use, the spreadsheet settings defined in GPT for Work (temperature (creativity), top-p, frequency penalty, and presence penalty) may not work as expected. If you get bad results, try tweaking the settings.
Here are a few local server solutions that you can use with GPT for Work:
Connecting to a local server in GPT for Work means setting the URL for the server and selecting one of the models available on the server.
Prerequisites
Local server that is running with one or more models and that supports the following OpenAI-compatible API endpoints:
For instructions on how to set up LM Studio, see:
Set the local server URL
- Excel
- Word
Open a Microsoft Excel workbook.
Click GPT for Excel Word in the Home tab.
infoYou can also go to Home > Add-ins > My add-ins > GPT for Excel Word.
In the sidebar menu, select API keys.
In the Custom local server field, enter the URL for the local server, and click Save.
tip
You have set the local server URL in GPT for Excel. You can now select local models.
Open a Microsoft Word document.
Click GPT for Excel Word in the Home tab.
infoYou can also go to Home > Add-ins > My add-ins > GPT for Excel Word.
In the sidebar menu, select Manage API keys.
In the Custom local server field, enter the URL for the local server, and click Save.
tip
You have set the local server URL in GPT for Word. You can now select local models.
Select a model available on the local server
- Excel
- Word
Expand the model switcher. You can find the available local models under Use your API key or endpoint.
noteThe available models depend on the models installed on the local server.
Select a model.
GPT for Excel now uses the selected model to generate all responses.
Expand the model switcher. You can find the available local models under Use your API key or endpoint.
noteThe available models depend on the models installed on the local server.
Select a model.
GPT for Word now uses the selected model to generate all responses.