Codeinwp / Codeinwp/otter-blocks

Support other API providers in the "AI Toolbar"

Open
#2,695 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

doc-needed new feature
Dominant language
JavaScript
Stars
198
Forks
36
Avg merge
3d 4h
Merged PRs (30d)
30

Description

What problem does this address?

The AI toolbar is unchangeably bound to OpenAI. From a data protection perspective in particular, there are good and better alternatives. Models from Antropic or Mistral AI are also very well suited for generating text. Some users maybe like to use self-hosted models with Ollama, BentoML etc. aswell.

What is your proposed solution?

Add an optional parameter to the “AI Toolbar” settings that allows you to set BASE_URL of the API to use. Default value could point to https://api.openai.com/v1/ which is the OpenAI platform.

Other AI platform API like Mistral AI's or Anthropic's are "OpenAI compatible", which means client integration only needs to user another BASE_URL of the API. The client code does not need to be touched.

Examples for other OpenAI compatible API base urls
Anthropic: https://api.anthropic.com/v1/
Mistral AI: https://api.mistral.ai/v1/

This approach would also allow the use of self-hosted AI Models in the "AI Toolbar", because runtimes like Ollama or OpenLLM are also compatible with the OpenAI API scheme.

Will this feature require documentation? (Optional)

Yes, it requires documentation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the AI Toolbar settings and the client code that currently uses OpenAI, then check how an optional BASE_URL can be passed through. Done means users can retain the OpenAI default, choose another OpenAI-compatible endpoint such as Mistral, Anthropic, or Ollama, and find the setting documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, ollama
Domain
ai, api, documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.