Skip to content
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

frontend: Fix Agent model being set #819

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

tianjing-li
Copy link
Collaborator

@tianjing-li tianjing-li commented Oct 17, 2024

AI Description

This pull request updates the useState hook in the ConfigStep component to use the fields.model value instead of the DEFAULT_AGENT_MODEL constant.

  • The useState hook now initializes the selectedValue state with the value of fields.model.
  • This change allows the component to dynamically set the initial value of the selectedValue state based on the fields prop, providing more flexibility in setting the default agent model.

@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.87%. Comparing base (7e2e993) to head (a70dfe4).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #819      +/-   ##
==========================================
+ Coverage   79.80%   79.87%   +0.07%     
==========================================
  Files         243      244       +1     
  Lines       10355    10436      +81     
==========================================
+ Hits         8264     8336      +72     
- Misses       2091     2100       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@malexw malexw left a comment

Choose a reason for hiding this comment

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

Good fix!

@tianjing-li tianjing-li added this pull request to the merge queue Oct 22, 2024
Merged via the queue into main with commit 2900eb0 Oct 22, 2024
6 checks passed
@tianjing-li tianjing-li deleted the create-agent-model-fe branch October 22, 2024 18:05
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