Conversation
Owner
|
Superseded by #222. The Go rewrite rejects socks5/socks5h (control plane writes socks5h URLs) and drops the existing Rust hop (WS, quota headers, scheduler). Fast routing is handled on the current kin-codex-kernel instead. |
1haku
pushed a commit
to 1haku/vm2api
that referenced
this pull request
Oct 3, 2026
Map service_tier fast to priority and forward Codex envelope headers on the existing Rust hop. Rebuild kin-codex-kernel with SOCKS5 kept. Catalog fallback and default UA follow npm @openai/codex@0.160.0. Supersedes dofastted#214.
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.
Problem
Codex
/v1/responsesrequests reached vm2api withservice_tierand client routing metadata, but the previous kernel dropped the headers and did not preserve the Fast routing signal on the final ChatGPT request.Changes
kin-codex-kernelimplementation for the Unix-socket Codex hop.x-codex-routing-hint: model=<model>;tier=<tier>and mapservice_tier: "fast"to the ChatGPT wire value"priority".Validation
go test -race ./...,go vet ./..., and Linux amd64 build passed.codex-convert,handle-codex,codex-kernel-client,vm-test-chat-codex).the test host, builtvm2api:codex-fast-routing-v2, replaced thevm2apicontainer while preserving its mounts and slot containers, verified the image and bind-mounted kernel hashes match, and confirmed a live/v1/responsesrequest withservice_tier=priorityreturned HTTP 200 after restart.