mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Visualization: copy
This commit is contained in:
@@ -46,7 +46,7 @@ export function DiagramsModal(props: { config: DiagramConfig, onClose: () => voi
|
||||
// state
|
||||
const [showOptions, setShowOptions] = React.useState(true);
|
||||
const [message, setMessage] = React.useState<DMessage | null>(null);
|
||||
const [diagramType, diagramComponent] = useFormRadio<DiagramType>('auto', diagramTypes, 'Visualization');
|
||||
const [diagramType, diagramComponent] = useFormRadio<DiagramType>('auto', diagramTypes, 'Visualize');
|
||||
const [diagramLanguage, languageComponent] = useFormRadio<DiagramLanguage>('plantuml', diagramLanguages, 'Style');
|
||||
const [errorMessage, setErrorMessage] = React.useState<string | null>(null);
|
||||
const [abortController, setAbortController] = React.useState<AbortController | null>(null);
|
||||
@@ -146,7 +146,7 @@ export function DiagramsModal(props: { config: DiagramConfig, onClose: () => voi
|
||||
{languageComponent}
|
||||
</Grid>
|
||||
)}
|
||||
<Grid xs={12}>
|
||||
<Grid xs={12} xl={6}>
|
||||
{llmComponent}
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
@@ -8,7 +8,7 @@ export type DiagramLanguage = 'mermaid' | 'plantuml';
|
||||
|
||||
// NOTE: keep these global, or it will trigger re-renders
|
||||
export const diagramTypes: FormRadioOption<DiagramType>[] = [
|
||||
{ label: 'Diagram', value: 'auto' },
|
||||
{ label: 'Auto-diagram', value: 'auto' },
|
||||
{ label: 'Mindmap', value: 'mind' },
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user