From 9396734dea1cac65fb111d436cddfe8047e6c37f Mon Sep 17 00:00:00 2001 From: eduardruzga Date: Wed, 13 Nov 2024 22:22:25 +0200 Subject: [PATCH] Various bug fixes around model/provider selection --- app/components/chat/BaseChat.tsx | 15 ++++++++++++--- app/components/chat/Chat.client.tsx | 12 ++++++------ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index cfa2afd..9a34f5b 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -7,7 +7,7 @@ import { Menu } from '~/components/sidebar/Menu.client'; import { IconButton } from '~/components/ui/IconButton'; import { Workbench } from '~/components/workbench/Workbench.client'; import { classNames } from '~/utils/classNames'; -import { MODEL_LIST, DEFAULT_PROVIDER, PROVIDER_LIST, ProviderInfo } from '~/utils/constants'; +import { MODEL_LIST, DEFAULT_PROVIDER, PROVIDER_LIST, ProviderInfo, initializeModelList } from '~/utils/constants'; import { Messages } from './Messages.client'; import { SendButton } from './SendButton.client'; import { useState } from 'react'; @@ -45,8 +45,10 @@ const ModelSelector = ({ model, setModel, provider, setProvider, modelList, prov ))}