This commit is contained in:
Enrico Ros
2023-05-18 02:56:34 -07:00
parent b58eecdbec
commit f4e3bcf55c
2 changed files with 6 additions and 2 deletions
@@ -44,6 +44,8 @@ export function Dropdowns(props: {
const handleSystemPurposeChange = (event: any, value: SystemPurposeId | null) =>
value && props.conversationId && setSystemPurposeId(props.conversationId, value);
const handleOpenLLMOptions = () => chatLLMId && openLLMOptions(chatLLMId);
// filter-out hidden models
const llmItems: DropdownItems = {};
for (const llm of llms)
@@ -58,7 +60,8 @@ export function Dropdowns(props: {
placeholder='Model'
appendOption={<>
<Option onClick={() => openLLMOptions('openai-gpt-4') /* FIXME */}>
{chatLLMId && (
<Option disabled={!chatLLMId} onClick={handleOpenLLMOptions}>
<ListItemDecorator>
<SettingsIcon color='info' />
</ListItemDecorator>
@@ -66,6 +69,7 @@ export function Dropdowns(props: {
Options
</Typography>
</Option>
)}
<Option onClick={openModelsSetup}>
<ListItemDecorator>
+1 -1
View File
@@ -38,7 +38,7 @@ export function LLMOptions(props: { id: DLLMId }) {
return (
<GoodModal
title={`${llm.label} Options`}
title={<><b>{llm.label}</b> options</>}
open={!!props.id} onClose={closeLLMOptions}
startButton={
<Button variant='plain' color='neutral' onClick={handleLlmDelete} startDecorator={<DeleteOutlineIcon />}>