Skip to content

Conversation

@louis-jan
Copy link
Contributor

@louis-jan louis-jan commented Jan 15, 2025

Describe Your Changes

This pull request addressed an issue where Jan application displayed an incorrect maximum number of NGL settings. It always displayed 100 instead of using the value specified in the model configuration.

CleanShot 2025-01-15 at 20 00 44@2x
CleanShot 2025-01-15 at 20 00 26@2x

Fixes Issues

Changes

This pull request includes a change to the web/utils/componentSettings.ts file to add a new case for handling 'ngl' settings in the getConfigurationsData function.

The most important change is:

  • web/utils/componentSettings.ts: Added a new case 'ngl' to set componentSetting.controllerProps.max based on selectedModel?.settings.ngl or a default value of 100.

@github-actions
Copy link
Contributor

Barecheck - Code coverage report

Total: 69.24%

Your code coverage diff: -0.02% ▾

Uncovered files and lines
FileLines
web/utils/componentSettings.ts16, 19-23, 25, 29, 31, 35, 37, 70-72

@louis-jan louis-jan merged commit bde35b4 into dev Jan 15, 2025
15 of 16 checks passed
@louis-jan louis-jan deleted the fix/mismatch-between-ui-and-model-configs branch January 15, 2025 13:30
@github-actions github-actions bot added this to the v0.5.14 milestone Jan 15, 2025
@hantran-co hantran-co modified the milestones: v0.5.14, v0.5.15 Jan 21, 2025
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.

bug: Mismatch between Jan UI & model configuration options

4 participants