ADFA-3017 | Add OpenAI-compatible AI backend - #67
Open
jatezzz wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
jatezzz
requested review from
a team,
Daniel-ADFA,
dara-abijo-adfa,
hal-eisen-adfa and
itsaky-adfa
August 13, 2026 17:08
jatezzz
force-pushed
the
refactor/ADFA-5096-split-ai-backend-plugins
branch
from
August 13, 2026 21:54
1a3b533 to
4cfed82
Compare
Registers the `openai` backend with ai-core: POST {baseUrl}/chat/completions over HttpURLConnection, with the base URL as a setting defaulting to OpenAI. One backend covers OpenAI, Ollama, LM Studio, OpenRouter and llama-server, since only the host differs between them (ADFA-3017, ADFA-3452).
The API key is optional unless the URL is OpenAI's own host, the model is a free-text field, and /v1/models is treated as optional — the three things that would each make the backend unusable for a self-hosted server. Reasoning-model parameters are chosen from the model id and a refused one is retried without. No changes to ai-core.
jatezzz
force-pushed
the
feat/ADFA-3017-openai-compatible-backend
branch
from
August 13, 2026 21:55
6f78a3b to
7d49aa2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the new
ai-agent-openaiplugin as an OpenAI-compatible inference backend forai-core.The implementation supports OpenAI and compatible servers such as Ollama, LM Studio, OpenRouter, and
llama-serverthrough a configurable base URL. It includes streaming inference, configurable model selection, secure API key storage, connection verification, server presets, error handling, and reasoning-model request compatibility.The repository documentation is also updated to include the new backend and its configuration, installation, security, and usage details.
Details
openaiinference backend withai-core.🎦 Demo in ticket
Ticket
ADFA-3017
Observation
The backend intentionally uses direct HTTP communication instead of an OpenAI SDK to avoid dependency and classloader conflicts with CodeOnTheGo.
Native function calling is not enabled; the backend relies on
ai-core's provider-agnostic agent flow. API keys remain optional for compatible local/private servers and are required only when appropriate for the configured endpoint.