[GH-ISSUE #3855] [FR] Support OpenAI baseurl/proxies in some form #1746

Open
opened 2026-03-23 21:16:44 +00:00 by mirror · 4 comments
Owner

Originally created by @AsafMah on GitHub (Nov 1, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3855

Originally assigned to: @appflowy on GitHub.

Description

Currently the openai api points are hardcoded into the code (api.openai.com ...).

This prevents usage over proxies where the normal site may be blocked, or usage with compatible apis such as azure's openai or localai.

I suggest adding a baseurl option along with the openai key option, that will default to the openai endpoint but will let users choose.

Impact

Users that can't use the normal openai endpoint can still benefit from the AI features in appflowy.

Additional Context

No response

Originally created by @AsafMah on GitHub (Nov 1, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3855 Originally assigned to: @appflowy on GitHub. ### Description Currently the openai api points are hardcoded into the code (api.openai.com ...). This prevents usage over proxies where the normal site may be blocked, or usage with compatible apis such as azure's openai or localai. I suggest adding a baseurl option along with the openai key option, that will default to the openai endpoint but will let users choose. ### Impact Users that can't use the normal openai endpoint can still benefit from the AI features in appflowy. ### Additional Context _No response_
Author
Owner

@Stinosko commented on GitHub (Nov 2, 2023):

I'm also interested in this feature!

<!-- gh-comment-id:1791341525 --> @Stinosko commented on GitHub (Nov 2, 2023): I'm also interested in this feature!
Author
Owner

@leleogere commented on GitHub (Jan 22, 2024):

Yes! That would also allow to use API for Mistral AI for example which is compatible with OpenAI's one!

However, it would also require to be able to specify the model to use, not only the baseurl (mistral-tiny, mistral-small or mistral-medium). Being able to change the model would also allow OpenAI users to choose the model they want to use. Currently, it seems that only gpt-3.5-turbo-instruct is usable as it is hardcoded:

github.com/AppFlowy-IO/AppFlowy@90516b6adc/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/service/openai_client.dart (L100-L107)

<!-- gh-comment-id:1903592641 --> @leleogere commented on GitHub (Jan 22, 2024): Yes! That would also allow to use API for Mistral AI for example which is compatible with OpenAI's one! However, it would also require to be able to specify the model to use, not only the baseurl (`mistral-tiny`, `mistral-small` or `mistral-medium`). Being able to change the model would also allow OpenAI users to choose the model they want to use. Currently, it seems that only `gpt-3.5-turbo-instruct` is usable as it is hardcoded: https://github.com/AppFlowy-IO/AppFlowy/blob/90516b6adca50013b776ec1987753f877c1366c8/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/service/openai_client.dart#L100-L107
Author
Owner

@Medve01 commented on GitHub (Mar 23, 2025):

It's 2025 and we still cannot use any other AI provider than OpenAI. It's sad. Eg. Azure Openai should not be that huge issue to implement as it's merely a configurable base url...

<!-- gh-comment-id:2746113527 --> @Medve01 commented on GitHub (Mar 23, 2025): It's 2025 and we still cannot use any other AI provider than OpenAI. It's sad. Eg. Azure Openai should not be that huge issue to implement as it's merely a configurable base url...
Author
Owner

@Jasmin25 commented on GitHub (May 16, 2025):

I'd recommend to go with something like https://openrouter.ai/ for once off effort to support all vendors.

<!-- gh-comment-id:2887773452 --> @Jasmin25 commented on GitHub (May 16, 2025): I'd recommend to go with something like https://openrouter.ai/ for once off effort to support all vendors.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1746
No description provided.