Skip to content

fix(upstream): drop top_p because majority of gpt-5 don't support it - #538

Merged
Soju06 merged 1 commit into
Soju06:mainfrom
huzky-v:fix/top-p-value-discard
May 10, 2026
Merged

Soju06 merged 1 commit into
Soju06:mainfrom
huzky-v:fix/top-p-value-discard

Conversation

@huzky-v

@huzky-v huzky-v commented May 3, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #391

The majority of gpt-5 models does not support top_p and temperature
And the temperature is now discarded before sending it to upstream, so the top_p should align with this.

codex-lb will now not fail the request and send the request normally to upstream

@Soju06

Soju06 commented May 10, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ 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".

@Soju06
Soju06 merged commit c7cc61e into Soju06:main May 10, 2026
18 checks passed
@Soju06

Soju06 commented May 10, 2026

Copy link
Copy Markdown
Owner

@all-contributors please add @huzky-v for code, test

@allcontributors

Copy link
Copy Markdown
Contributor

@Soju06

@huzky-v already contributed before to code, test

@huzky-v
huzky-v deleted the fix/top-p-value-discard branch May 10, 2026 13:48
xirothedev added a commit to xirothedev/codex-lb that referenced this pull request May 10, 2026
…l fetch timeouts, image rewrite)

Upstream batch v1.16.0 highlights:
- proxy: expose drain status for graceful deploys (Soju06#564)
- proxy: narrow budget-safe gate to primary usage (Soju06#561)
- proxy: handle model fetch timeouts (Soju06#541)
- proxy: inline-rewrite input_image file references (Soju06#571)
- proxy: retry transient stream timeouts (Soju06#551)
- proxy: use DEFAULT_HOME_DIR for oversized response.create dumps (Soju06#575)
- accounts: split compact quota row + recover quota status (Soju06#562, Soju06#559)
- db: size background pool for burst traffic (Soju06#563)
- upstream: drop top_p for gpt-5 (Soju06#538)

Conflict resolved:
- app/modules/proxy/service.py: kept fork's multi-line import + FailurePhase
  (used by deterministic failover at line 8294).

Merge cleanup:
- app/main.py: removed pre-existing duplicate InFlightMiddleware class +
  duplicate _is_benign_metrics_bind_failure helper that shadowed canonical
  versions and broke new upstream test (test_in_flight_middleware_does_not_count_drain_status).

Verification:
- pytest tests/unit: 1459 passed, 17 failed (all pre-existing on backup
  branch backup/pre-upstream-merge-20260511 — date-bound API key tests,
  test_db_migrate.py SQLite env, settings duplicate validators).
- openspec validate --specs: 19/19 passed.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
vitalNohj pushed a commit to vitalNohj/codex-lb that referenced this pull request Jul 17, 2026
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.

Request supported parameter: top_p

2 participants