Build OpenAI-compatible models with the Responses API #2116
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 482 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.370
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #2116"
general
weight: 0.35
arnabnandy7
🤖
Goal
Closes embabel/embabel-agent#2120.
Provide an explicit OpenAI-compatible factory path for models served through the Responses API, including GPT-6 Luna workflows that need reasoning and tools.
What changed
OpenAiCompatibleModelFactory.openAiResponsesLlm.Result
Applications can explicitly create Responses-backed models with a custom-compatible endpoint and credentials, and with reasoning options for any provider name. Native structured output is used when the caller passes the shipped catalogue's
nativeSupportDefaults. The factory keeps no copy of those settings, and the #2027 schema compatibility gate still falls back to prompt-based output. The customization guide documents the path.Boundaries
This does not add streaming, media support, reasoning-item/assistant-phase replay, or automatic continuation. It does not guarantee Responses API support on arbitrary custom endpoints or guarantee no provider-side storage. Existing callers choose the Responses factory explicitly; no default transport is switched.
Verification
All on head f3ddcd8b8, Java 21, system
mvn,-Dmaven.gitcommitid.skip=true -Dkotlin.compiler.daemon=false.mvn -o -q -pl embabel-agent-openai,embabel-agent-autoconfigure/models/embabel-agent-openai-autoconfigure -am test -Dtest='OpenAiCompatibleModelFactoryResponsesTest,OpenAiResponsesCatalogStructuredOutputTest' -Dsurefire.failIfNoSpecifiedTests=false. BUILD SUCCESS: 6 + 3 tests, 0 failures.mvn -o -pl embabel-agent-api,embabel-agent-openai,embabel-agent-autoconfigure/models/embabel-agent-openai-autoconfigure -am test. BUILD SUCCESS: 5,099 tests, 0 failures, 0 errors, 24 skipped. The skipped tests are disabled tests; no live integration tests run. This includes the binary-compatibility testthe published constructors still link.-
a function call the output limit cut short is not dispatched: afunction_callmarkedincompleteis no longer returned as a tool call.-
schema names are cut to the length the api accepts: the schema name stays within OpenAI's 64 characters.-
the chat observation reports the configured provider: the observation reportedOpenAIfor a service built asAcme Gateway; it now reportsAcme Gateway.-
the published constructors still link: the adapter's published four-argument constructor and Kotlin's default-argument constructor exist and construct. Before the fix, the four-argument one threwNoSuchMethodException.-
an explicit reasoning effort is preserved for an endpoint with its own provider name: before the fix, the request built asAcme Gatewayhad noreasoning; it now carriesreasoning.effort = low.-
without native support structured output is left to the prompt: the factory used to send atext.formatfrom its own copy of the catalogue settings; with nonativeSupportit now sends none.OpenAiResponsesCatalogStructuredOutputTest, a model built by the factory with the catalogue'snativeSupportDefaultssends a compatible schema astext.formatjson_schema. A schema with an openMapfalls back to prompt-based output.