Skip to content

Commit f93e485

Browse files
committed
Update image error tooltip to clarify autofill limitations and provide usage guidance
1 parent f969f84 commit f93e485

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/ui/src/components/editor/panel/PromptField/utils/get-highlighted-text.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ export const get_highlighted_text = (params: {
217217
return `<span class="${cn(styles['symbol'], styles['symbol--image'], {
218218
[styles['symbol--error']]: is_error
219219
})}" data-type="image-symbol" data-hash="${hash}"${
220-
is_error ? ' title="Images are not supported in Web mode"' : ''
220+
is_error
221+
? ' title="The prompt autofill feature can\'t handle images.\nUpload in chatbot or use API with a multimodal model."'
222+
: ''
221223
}><span class="${
222224
styles['symbol__icon']
223225
}" data-role="symbol-icon"></span><span class="${

0 commit comments

Comments
 (0)