fix: Handle providers in Restore Flow
This commit is contained in:
parent
681a139a93
commit
03c851dfab
1 changed files with 2 additions and 3 deletions
|
|
@ -652,10 +652,9 @@ function KnowledgeSourcesPage() {
|
|||
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
|
||||
})
|
||||
.then(() => {
|
||||
// Only reset form values if the API call was successful
|
||||
// Flow restoration is complete - backend already updated flow with current provider/model
|
||||
// Just reset the UI form value for system prompt
|
||||
setSystemPrompt(DEFAULT_AGENT_SETTINGS.system_prompt);
|
||||
// Trigger model update to default model
|
||||
handleModelChange(DEFAULT_AGENT_SETTINGS.llm_model);
|
||||
closeDialog(); // Close after successful completion
|
||||
})
|
||||
.catch((error) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue