Skip to content

Fix preserved state across OpenAI requests when backend_body / backend_params are used #236

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

Merged
merged 3 commits into from
Jul 23, 2025

Conversation

markurtz
Copy link
Collaborator

No description provided.

@markurtz markurtz requested a review from Copilot July 21, 2025 21:37
@markurtz markurtz self-assigned this Jul 21, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a state preservation issue where modifications to backend_body/backend_params were being shared across multiple OpenAI requests due to mutable dictionary references. The fix ensures each request gets an independent copy of the extra body configuration.

  • Adds deep copying of extra_body dictionaries to prevent shared mutable state
  • Imports the copy module to support the deepcopy functionality

markurtz and others added 2 commits July 23, 2025 17:51
…d_params are used

Signed-off-by: Mark Kurtz <mark.j.kurtz@gmail.com>
To clarify all of the UI changes here, there was a previous version of
the UI that worked with an older version of guidellm and the code used
to generate the html report provided the UI with a different data
format. Most of the UI changes here are needed to get things up to date
with the current version of guidellm and how the html reporting logic
generates data.

There are a few specific changes in these files to get logarithmic
scaling working which I found was broken after making these changes, in
hindsight I would have split these out into another PR:
src/ui/lib/components/Charts/DashedLine/DashedLine.component.tsx
src/ui/lib/components/Charts/DashedLine/helpers.ts
src/ui/lib/components/Charts/MetricLine/MetricLine.component.tsx
tests/ui/unit/components/Charts/DashedLine/helpers.test.ts

There were a few other tiny bug fixes as well.

---------

Signed-off-by: dalthecow <dalcowboiz@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Samuel Monson <smonson@redhat.com>
Co-authored-by: Mark Kurtz <mark.j.kurtz@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Mark Kurtz <mark.j.kurtz@gmail.com>
@markurtz markurtz force-pushed the bug/max-always-forced branch from 59d4e84 to 1ddf2b8 Compare July 23, 2025 17:51
@markurtz markurtz merged commit 72374ef into main Jul 23, 2025
17 of 18 checks passed
@markurtz markurtz deleted the bug/max-always-forced branch July 23, 2025 18:02
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