We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d66c4 commit 2faff07Copy full SHA for 2faff07
frontend/app/[locale]/setup/models/components/model/ModelDeleteDialog.tsx
@@ -460,6 +460,14 @@ export const ModelDeleteDialog = ({
460
// Show success message since no exception was thrown
461
message.success(t("model.dialog.success.updateSuccess"));
462
463
+ // Synchronize providerModels state with the updated maxTokens
464
+ setProviderModels((prev) =>
465
+ prev.map((model) => ({
466
+ ...model,
467
+ max_tokens: maxTokens || model.max_tokens || 4096,
468
+ }))
469
+ );
470
+
471
// Optionally use currentModelPayloads for subsequent API calls if needed
472
} catch (e) {
473
message.error(t("model.dialog.error.noModelsFetched"));
0 commit comments