Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions front/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion front/src/components/settings-page/llms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const LLMItem: React.FC<LLMItemProps> = ({
};

export const LLMSettings: React.FC = () => {
const { user } = useAuth();
const { user, refreshLLMs, refreshUser } = useAuth();
const confirm = useConfirm();
const canManagePermissions = Boolean(user?.is_superuser);
const [llmList, setLlmList] = useState<LLMResponse[]>([]);
Expand Down Expand Up @@ -148,6 +148,8 @@ export const LLMSettings: React.FC = () => {
await apiClient.delete(`${API_AGENT_PREFIX}/llms/${llmId}`);
toast.success("Модель удалена");
fetchLLMs();
void refreshLLMs();
void refreshUser();
} catch {
// handled globally
} finally {
Expand Down Expand Up @@ -239,6 +241,8 @@ export const LLMSettings: React.FC = () => {
}

fetchLLMs();
void refreshLLMs();
void refreshUser();
} catch {
// handled globally
} finally {
Expand Down
Loading