Feature request: Optional custom OpenAI-compatible API support for AI Coder
Would it be possible to add an optional custom OpenAI-compatible API configuration to Perchance AI Coder?
This could be useful for people who prefer a different model or want more control over the AI Coder's behavior, especially given some of the recent concerns about the current AI helper/model.
Ideally, the settings could include:
- Model ID — a text input where users can enter the model name/ID.
- Model selection — optionally allow selecting from models returned by the configured API.
- Base URL — for example, an OpenAI-compatible endpoint such as "https://example.com/v1".
- API key — optional input for providers that require authentication.
- Default Perchance model — keep the existing model as the default, so this would be completely optional.
The important part would be supporting OpenAI-compatible APIs, rather than tying the feature to one specific provider. This would let users connect compatible local or third-party endpoints without requiring Perchance to host or provide every model.
For example, the configuration could look something like:
API Base URL: https://example.com/v1 Model ID: my-coding-model API Key: ********
Then AI Coder could send requests using the standard OpenAI-compatible chat/completions interface.
This could also provide a way for users who prefer an older/different coding model to use their own provider while keeping the normal Perchance experience available for everyone else.
Would the Perchance devs consider adding something like this?