🗣 fix: Add Various State Change Announcements (#11495)
Some checks are pending
Docker Dev Branch Images Build / build (Dockerfile, lc-dev, node) (push) Waiting to run
Docker Dev Branch Images Build / build (Dockerfile.multi, lc-dev-api, api-build) (push) Waiting to run

* fix: Agent Builder Reset button announcements

* fix: special variables announcements

* fix: model select announcements

* fix: prompt deletion announcement

* refactor: encapsulate model display name logic

* chore: address comments

* chore: re-order i18n strings
This commit is contained in:
Dustin Healy 2026-02-05 16:42:15 +01:00 committed by GitHub
parent fcb363403a
commit 46624798b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 39 additions and 2 deletions

View file

@ -15,6 +15,7 @@ import {
import type * as t from 'librechat-data-provider';
import type { AgentForm, AgentModelPanelProps, StringOption } from '~/common';
import { useGetEndpointsQuery } from '~/data-provider';
import { useLiveAnnouncer } from '~/Providers';
import { useLocalize } from '~/hooks';
import { Panel } from '~/common';
import { cn } from '~/utils';
@ -25,6 +26,7 @@ export default function ModelPanel({
models: modelsData,
}: Pick<AgentModelPanelProps, 'models' | 'providers' | 'setActivePanel'>) {
const localize = useLocalize();
const { announcePolite } = useLiveAnnouncer();
const { control, setValue } = useFormContext<AgentForm>();
@ -91,6 +93,7 @@ export default function ModelPanel({
const handleResetParameters = () => {
setValue('model_parameters', {} as t.AgentModelParameters);
announcePolite({ message: localize('com_ui_model_parameters_reset'), isStatus: true });
};
return (