-
Notifications
You must be signed in to change notification settings - Fork 559
feat(v1): dialect-routed interception — byte relay on matching protocols, typed translate otherwise #1657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: codex/v1-native-provider-clients
Are you sure you want to change the base?
feat(v1): dialect-routed interception — byte relay on matching protocols, typed translate otherwise #1657
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ async def launch( | |
| mcp_urls: dict[str, str], | ||
| ) -> ProgramResult: | ||
| env = { | ||
| "OPENAI_BASE_URL": endpoint, | ||
| "OPENAI_BASE_URL": f"{endpoint}/v1", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When this harness points the OpenAI SDK at the new Useful? React with 👍 / 👎. |
||
| "OPENAI_API_KEY": secret, | ||
| "OPENAI_MODEL": ctx.model, | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compact harness drops eval sampling
Medium Severity
On the relay path the interception server forwards request bodies unchanged, so eval
ctx.samplingmust reach the program via env (as the default harness does withOPENAI_SAMPLINGandextra_body). The compact harness and program were not updated, so temperature, max tokens, and other sampling settings from the eval are omitted from compact harness model calls when the client uses the chat dialect.Reviewed by Cursor Bugbot for commit 302dcee. Configure here.