Skip to content

Commit

Permalink
Fixme--
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed May 18, 2023
1 parent b58eecd commit f4e3bcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/apps/chat/components/appbar/Dropdowns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -58,14 +60,16 @@ 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>
<Typography>
Options
</Typography>
</Option>
)}

<Option onClick={openModelsSetup}>
<ListItemDecorator>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/llms/configurator/LLMOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />}>
Expand Down

0 comments on commit f4e3bcf

Please sign in to comment.