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

fix: app does not reload model when prompt template is updated #4537

Merged

Conversation

louis-menlo
Copy link
Contributor

@louis-menlo louis-menlo commented Jan 29, 2025

Describe Your Changes

This PR addressed an issue where users switch to a different model and then switch back to the original model. The new settings are not applied in this scenario.

Chore update:
Cortex engine version bump to 0.1.49

Fixes Issues

Self Checklist

This pull request includes several updates and improvements across different files, primarily focusing on version updates and enhancements to the ModelDropdown component.

Version Updates:

  • Updated CORTEX_ENGINE_VERSION from v0.1.46 to v0.1.49 in extensions/engine-management-extension/rolldown.config.mjs [1] [2].
  • Updated CORTEX_ENGINE_VERSION from v0.1.46 to v0.1.49 in extensions/inference-cortex-extension/rolldown.config.mjs.

Enhancements to ModelDropdown Component:

  • Added import for useActiveModel hook in web/containers/ModelDropdown/index.tsx.
  • Added stopModel function call from useActiveModel in the ModelDropdown component to stop the model when a new model is selected [1] [2].

@louis-menlo louis-menlo requested a review from urmauur January 29, 2025 10:11
@github-actions github-actions bot added the type: bug Something isn't working label Jan 29, 2025
Copy link
Contributor

Barecheck - Code coverage report

Total: 67.86%

Your code coverage diff: 0.00% ▴

Uncovered files and lines
FileLines
web/containers/ModelDropdown/index.tsx129-130, 140, 149, 153, 155, 157-158, 160-161, 163-166, 168, 190-191, 201, 205, 220-221, 228-232, 234, 236, 255, 260, 270, 277, 280-281, 302, 326, 349, 370, 379, 385, 393, 396, 398, 402, 404-409, 412, 415, 472-473, 475, 501, 509, 511, 536, 541-542, 544, 548-550, 552-553, 555, 565-568, 599, 607, 609

Copy link
Contributor

This is the build for this pull request. You can download it from the Artifacts section here: Build URL.

@louis-menlo louis-menlo merged commit 144b836 into release/v0.5.15 Jan 29, 2025
19 checks passed
@louis-menlo louis-menlo deleted the fix/app-does-not-reload-model-on-template-update branch January 29, 2025 14:50
@github-actions github-actions bot added this to the v0.5.15 milestone Jan 29, 2025
louis-menlo added a commit that referenced this pull request Feb 4, 2025
* fix: app does not reload model when prompt template is updated

* chore: lint fix
louis-menlo added a commit that referenced this pull request Feb 4, 2025
* fix: app does not reload model when prompt template is updated

* chore: lint fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants