Upload 26 files
Browse files
app/components/chat/BaseChat.tsx
CHANGED
|
@@ -78,6 +78,7 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
|
| 78 |
model,
|
| 79 |
setModel,
|
| 80 |
apiKeys,
|
|
|
|
| 81 |
provider,
|
| 82 |
setProvider,
|
| 83 |
providerList,
|
|
@@ -102,7 +103,6 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
|
| 102 |
ref,
|
| 103 |
) => {
|
| 104 |
const TEXTAREA_MAX_HEIGHT = chatStarted ? 400 : 200;
|
| 105 |
-
const [apiKeys, setApiKeys] = useState<Record<string, string>>(getApiKeysFromCookies());
|
| 106 |
const [modelList, setModelList] = useState(MODEL_LIST);
|
| 107 |
const [isModelSettingsCollapsed, setIsModelSettingsCollapsed] = useState(false);
|
| 108 |
const [isListening, setIsListening] = useState(false);
|
|
|
|
| 78 |
model,
|
| 79 |
setModel,
|
| 80 |
apiKeys,
|
| 81 |
+
setApiKeys,
|
| 82 |
provider,
|
| 83 |
setProvider,
|
| 84 |
providerList,
|
|
|
|
| 103 |
ref,
|
| 104 |
) => {
|
| 105 |
const TEXTAREA_MAX_HEIGHT = chatStarted ? 400 : 200;
|
|
|
|
| 106 |
const [modelList, setModelList] = useState(MODEL_LIST);
|
| 107 |
const [isModelSettingsCollapsed, setIsModelSettingsCollapsed] = useState(false);
|
| 108 |
const [isListening, setIsListening] = useState(false);
|
app/components/chat/Chat.client.tsx
CHANGED
|
@@ -512,6 +512,7 @@ export const ChatImpl = memo(
|
|
| 512 |
provider={provider}
|
| 513 |
setProvider={handleProviderChange}
|
| 514 |
apiKeys={apiKeys}
|
|
|
|
| 515 |
providerList={activeProviders}
|
| 516 |
messageRef={messageRef}
|
| 517 |
scrollRef={scrollRef}
|
|
|
|
| 512 |
provider={provider}
|
| 513 |
setProvider={handleProviderChange}
|
| 514 |
apiKeys={apiKeys}
|
| 515 |
+
setApiKeys={setApiKeys}
|
| 516 |
providerList={activeProviders}
|
| 517 |
messageRef={messageRef}
|
| 518 |
scrollRef={scrollRef}
|