mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Fixme--
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 />}>
|
||||
|
||||
Reference in New Issue
Block a user