Skip to content

[pull] main from Alishahryar1:main - #183

Merged
pull[bot] merged 1 commit into
Co-Contribute-OpenSource:mainfrom
Alishahryar1:main
Aug 26, 2026
Merged

[pull] main from Alishahryar1:main#183
pull[bot] merged 1 commit into
Co-Contribute-OpenSource:mainfrom
Alishahryar1:main

Conversation

@pull

@pull pull Bot commented Aug 26, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

## Problem

Responses ingress was detouring through Anthropic Messages before
reaching OpenAI-compatible upstreams. That duplicated translation work,
obscured protocol ownership, and prevented a provider such as OpenCode
from selecting Chat Completions or Responses directly for the requested
model.

## Changes

| Before | After |
| --- | --- |
| Responses was translated through Messages and then translated again
for the selected upstream. | Messages and Responses remain distinct
ingress protocols and route directly to Chat Completions or Responses. |
| Provider execution exposed one Messages-shaped path. | The provider
port exposes the full two-input by two-output matrix behind one shared
candidate, retry, fallback, deadline, and cancellation loop. |
| Native Responses events were reconstructed through an Anthropic
lifecycle. | Native Responses requests and events preserve upstream
identity and usage while FCC rewrites only its public model metadata. |
| Live Responses-ingress validation covered only the four OpenCode
routing cells. | Live Responses-ingress validation covers NVIDIA NIM,
OpenRouter free, Groq, Gemini Flash Lite, Mistral, and OpenCode Zen; the
Groq smoke default tracks a current catalog model. |

Adds direct Responses-to-Chat request/output translation, native
Responses relay and presentation, catalog-driven four-way OpenCode
routing, shared provider retry ownership, and deterministic
matrix/lifecycle contracts. Removes the obsolete Responses-to-Anthropic
detour and bumps the package to 5.14.9.








<!-- greptile_comment -->

<details open><summary><h3>Greptile Summary</h3></summary>

This change adds direct routing for Messages and Responses requests
across Chat Completions and Responses upstream transports, while
preserving native Responses streaming lifecycle events and public model
identity. Structured Responses input and tool token estimation now stops
traversal at the configured character bound.
</details>


<h3>Confidence Score: 5/5</h3>

No blocking failure remains.

Focused transport, lifecycle, model-identity, retry, truncation, and
bounded-serialization checks completed successfully.

<details><summary><h3><a href="https://www.greptile.com/trex"><img
alt="T-Rex"
src="https://greptile-static-assets.s3.amazonaws.com/trex/trex_green.svg"
height="20" align="absmiddle"></a> T-Rex Logs</h3></summary>

**What T-Rex did**
- Executed the JSON cap validation script with oversized nested inputs
and the json.dumps guard, confirmed the estimator completed within the
cap and that the largest dumped string stayed under the limit, while
token-estimation tests passed.
- Ran native Responses core and transport contract suites, then
exercised the two-ingress by two-upstream protocol matrix, and finished
with the consolidated focused contract suite where all tests passed.
- Validated that the unsafe whole-container serialization condition was
detected before dump attempts, and verified the estimator respected the
token and size caps via code-paths that bound and slice inputs before
serialization.
- Captured the end-to-end contract run, showing the native-core and
Responses-transport tests followed by the protocol-matrix tests and the
focused test run, with all required tests passing and a verbose artifact
available for review.

<a
href="https://app.greptile.com/trex/runs/20856046/artifacts"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewAllArtifactsDark.svg?v=4"><source
media="(prefers-color-scheme: light)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewAllArtifacts.svg?v=4"><img
alt="View all artifacts"
src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewAllArtifacts.svg?v=4"></picture></a>

<sub><a href="https://www.greptile.com/trex"><img alt="T-Rex"
src="https://greptile-static-assets.s3.amazonaws.com/trex/trex_green.svg"
height="14" align="absmiddle"></a> Ran code and verified through
T-Rex</sub>
</details>

<sub>Reviews (4): Last reviewed commit: ["test: refresh Groq smoke
model"](beba33e)
| [Re-trigger
Greptile](https://app.greptile.com/api/retrigger?id=57000900)</sub>

<!-- /greptile_comment -->
@pull pull Bot locked and limited conversation to collaborators Aug 26, 2026
@pull pull Bot added the ⤵️ pull label Aug 26, 2026
@pull
pull Bot merged commit ecaf236 into Co-Contribute-OpenSource:main Aug 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant