u
This commit is contained in:
@@ -156,13 +156,13 @@ export default class ChatDrawer extends PureComponent {
|
||||
stagedReferences: [],
|
||||
stagedExtractions: s.pendingExtraction
|
||||
? [
|
||||
{
|
||||
id: `ext-${Date.now()}`,
|
||||
text: s.pendingExtraction.text,
|
||||
label: s.pendingExtraction.label || 'parsed invoice',
|
||||
instruction: s.pendingExtraction.instruction || EXTRACTION_MODEL_INSTRUCTION,
|
||||
},
|
||||
]
|
||||
{
|
||||
id: `ext-${Date.now()}`,
|
||||
text: s.pendingExtraction.text,
|
||||
label: s.pendingExtraction.label || 'parsed invoice',
|
||||
instruction: s.pendingExtraction.instruction || EXTRACTION_MODEL_INSTRUCTION,
|
||||
},
|
||||
]
|
||||
: [],
|
||||
previewExtraction: null,
|
||||
isProcessingFiles: false,
|
||||
@@ -839,7 +839,7 @@ export default class ChatDrawer extends PureComponent {
|
||||
try {
|
||||
inputEl.selectionStart = newCursorPos;
|
||||
inputEl.selectionEnd = newCursorPos;
|
||||
} catch {}
|
||||
} catch { }
|
||||
}
|
||||
}
|
||||
);
|
||||
@@ -1949,11 +1949,6 @@ export default class ChatDrawer extends PureComponent {
|
||||
type="submit"
|
||||
color="primary"
|
||||
disabled={!canSend}
|
||||
title={
|
||||
isWorking
|
||||
? 'Modell antwortet gerade…'
|
||||
: 'Senden (Enter)'
|
||||
}
|
||||
sx={{
|
||||
bgcolor: isWorking ? 'action.hover' : 'primary.main',
|
||||
color: isWorking ? 'warning.main' : 'primary.contrastText',
|
||||
|
||||
Reference in New Issue
Block a user