gristlabs / grist-core

Grist is the evolution of spreadsheets.
https://www.getgrist.com
Apache License 2.0
7.27k stars 322 forks source link

Add support for Azure OpenAI Services Endpoints #1282

Closed senk closed 2 weeks ago

senk commented 2 weeks ago

Describe the problem to be solved

Azure OpenAI Services Endpoints are currently not supported with Token Authentication. Currently i get an error that the Access Token is not set

Describe the solution you would like

Add an option to use Azure OpenAI Services Endpoints. This should be as trivial as change the Authorization: Bearer <token> Header to api-key: <token> when an Microsoft Azure OpenAI Endpoint is used e.g. domain includes openai.azure.com or configurable via ENV variable