Skip to content

Conversation

@jdchawla29
Copy link
Collaborator

@jdchawla29 jdchawla29 commented Dec 21, 2025

Note

Adds a remote-only --byok option that propagates to rollout requests, hides local creds on remote, auto-injects HUD_API_KEY for gateway calls, and guards against passing provider api_key to the HUD Gateway.

  • CLI/Eval (hud/cli/eval.py):
    • Add --byok flag and [eval].byok config; validate as remote-only; show in settings table.
    • Strip api_key/model_client when submitting remote jobs; pass use_byok to submissions.
    • Auto-inject HUD_API_KEY for OPENAI_COMPATIBLE when base_url is the HUD Gateway.
  • Datasets (hud/datasets/utils.py):
    • Extend SingleTaskRequest with use_byok; plumb use_byok through submit_rollouts and batch payloads.
  • Agents (hud/agents/openai_chat.py):
    • Enforce gateway auth: reject api_key when base_url targets HUD Gateway and differs from HUD_API_KEY; direct users to HUD_API_KEY/BYOK.

Written by Cursor Bugbot for commit c6963de. This will update automatically on new commits. Configure here.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lorenss-m lorenss-m merged commit 7ef6282 into main Dec 31, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants