Repository navigation
Conversation
…tches their endpoint
Owner
Author
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.
A host that sends model traffic through a proxy of its own can now plug it into
App.createwith one function. The test case was paradigmxyz/iron-proxy, where a Worker holds no credentials and the proxy injects them.Forward.create({ fetch })(nanocode-ts/cloudflare) is a generic egress. It answers the private binding's/modelwith aRequestto the dispatch'sendpoint, carrying its headers and body, and/socketwith a WebSocket upgrade to the socket'sendpoint. It hands each tofetch(request, dispatch)and returns the response, which for sockets is a 101 with itswebSocket./warmanswers 204,/metricsok and/remote501. Before this, every such host had to reimplement nanocode-ts's internal/modeland/socketprotocol.SocketDispatchnow carries the Codex Responsesendpointthe socket opens, plussubscription, asModelDispatchdoes. Before, an egress had to hard-codechatgpt.comfor plan sockets. The App computes the endpoint once and uses it for both the runtime's config and the socket dispatch.Checked:
npm run check:typespasses.npx vp checkreports 0 errors.npx vp test runpasses 39 of 39.Forwardsent every request through anmtls_certificatesbinding to iron-proxy's reverse listener (feat(proxy): add an mTLS reverse listener for clients that cannot trust the MITM CA paradigmxyz/iron-proxy#294) on a GCP VM. iron-proxy injected a ChatGPT plan's token, which iron-token-broker kept refreshed, and a Claude plan's token. Withsubscription: () => trueand no credential in the Worker: