fix: make translated Anthropic requests provider-valid - #487
Merged
alongubkin merged 2 commits intoAug 24, 2026
Conversation
Greptile SummaryThe PR makes OpenAI-to-Anthropic request translation provider-valid by supplying a bounded
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| crates/alien-ai-gateway/src/protocol.rs | Adds the required Anthropic output-token default and tests omitted, null, and explicit OpenAI limits. |
| crates/alien-ai-gateway/tests/integration.rs | Strengthens direct-Anthropic integration coverage by validating native and translated request bodies separately. |
| .github/workflows/ci-fast.yml | Reduces Rust compilation and nextest concurrency from twelve workers to eight. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[OpenAI Chat Completions] --> T[Protocol translator]
B[OpenAI Responses] --> T
T --> L{Output limit numeric?}
L -->|Yes| P[Preserve explicit limit]
L -->|No: omitted or null| D[Use 4096-token default]
P --> M[Anthropic Messages request]
D --> M
M --> U[Anthropic provider]
Reviews (2): Last reviewed commit: "ci: reduce Rust test memory pressure" | Re-trigger Greptile
alongubkin
deleted the
alon/alien-571-provider-valid-cross-protocol-requests
branch
August 24, 2026 18:36
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.
Summary
nullOpenAI limit as unspecified while preserving explicit numeric limits exactlymax_tokensfield and a real translated user messageFixes ALIEN-571.
Validation
cargo fmt --all -- --checkcargo test -p alien-ai-gateway(89 unit tests, 9 runnable integration/live tests passed; credentialed cloud tests remained ignored)cargo clippy -p alien-ai-gateway --all-targets --locked(passes with existing warnings)-D warningsis currently blocked by existing workspace and gateway warnings unrelated to this diff