LocalAI/core/http/react-ui/src/pages
Daniel Liljeberg fc3980dadd
fix: inject text-file content into chat completions messages (#9896)
Non-image/non-audio file attachments (txt, md, csv, json) were being
  stored in the 'files' metadata field but never added to the message
  content array sent to /v1/chat/completions. Images and audio correctly
  received content blocks; files did not.

  Fix: push a text content block into messageContent when textContent is
  present, matching the pattern used for image_url and audio_url.

  Also fixes Home.jsx addFiles which never called file.text() at all,
  meaning files attached on the home screen had empty textContent even
  before reaching useChat.js.

  Note: PDF files use file.text() which returns raw bytes rather than
  parsed text. Proper PDF support would require PDF.js or server-side
  extraction and is not part of this fix.

Signed-off-by: Daniel Liljeberg <damien_@hotmail.com>
2026-05-20 01:00:32 +02:00
..
Account.jsx chore: Security hardening (#9719) 2026-05-08 16:25:45 +02:00
AgentChat.jsx chore: Security hardening (#9719) 2026-05-08 16:25:45 +02:00
AgentCreate.jsx feat(react-ui): page-width archetype system + mobile/tablet nav polish 2026-04-27 11:51:29 +00:00
AgentJobDetails.jsx feat(react-ui): page-width archetype system + mobile/tablet nav polish 2026-04-27 11:51:29 +00:00
AgentJobs.jsx feat(react-ui): page-width archetype system + mobile/tablet nav polish 2026-04-27 11:51:29 +00:00
Agents.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
AgentStatus.jsx feat(react-ui): page-width archetype system + mobile/tablet nav polish 2026-04-27 11:51:29 +00:00
AgentTaskDetails.jsx feat(react-ui): page-width archetype system + mobile/tablet nav polish 2026-04-27 11:51:29 +00:00
AudioTransform.jsx feat: add LocalVQE backend and audio transformations UI (#9640) 2026-05-04 22:07:11 +02:00
auth.css feat(react-ui): editorial refresh with Nord palette and polished primitives (#9550) 2026-04-24 23:35:59 +02:00
BackendLogs.jsx feat(react-ui): page-width archetype system + mobile/tablet nav polish 2026-04-27 11:51:29 +00:00
Backends.jsx chore: Security hardening (#9719) 2026-05-08 16:25:45 +02:00
Chat.jsx chore: Security hardening (#9719) 2026-05-08 16:25:45 +02:00
CollectionDetails.jsx feat(react-ui): page-width archetype system + mobile/tablet nav polish 2026-04-27 11:51:29 +00:00
Collections.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
Explorer.jsx chore: css cleanups 2026-03-31 16:37:38 +02:00
FaceRecognition.jsx feat: add biometrics UI (#9524) 2026-04-24 08:50:34 +02:00
FineTune.jsx feat(realtime): Add Liquid Audio s2s model and assistant mode on talk page (#9801) 2026-05-13 21:57:27 +02:00
Home.jsx fix: inject text-file content into chat completions messages (#9896) 2026-05-20 01:00:32 +02:00
ImageGen.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
ImportModel.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
Login.jsx chore: Security hardening (#9719) 2026-05-08 16:25:45 +02:00
Manage.jsx chore: Security hardening (#9719) 2026-05-08 16:25:45 +02:00
ModelEditor.jsx feat(react-ui): page-width archetype system + mobile/tablet nav polish 2026-04-27 11:51:29 +00:00
Models.jsx feat(realtime): Add Liquid Audio s2s model and assistant mode on talk page (#9801) 2026-05-13 21:57:27 +02:00
NodeBackendLogs.jsx fix(distributed): per-replica backend logs (store aggregation + UI) 2026-04-27 20:55:24 +00:00
Nodes.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
NotFound.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
P2P.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
Quantize.jsx feat(react-ui): page-width archetype system + mobile/tablet nav polish 2026-04-27 11:51:29 +00:00
Settings.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
SkillEdit.jsx feat(react-ui): page-width archetype system + mobile/tablet nav polish 2026-04-27 11:51:29 +00:00
Skills.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
Sound.jsx feat: add LocalVQE backend and audio transformations UI (#9640) 2026-05-04 22:07:11 +02:00
Studio.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
Talk.jsx feat(realtime): Add Liquid Audio s2s model and assistant mode on talk page (#9801) 2026-05-13 21:57:27 +02:00
Traces.jsx feat: add LocalVQE backend and audio transformations UI (#9640) 2026-05-04 22:07:11 +02:00
TTS.jsx feat: add LocalVQE backend and audio transformations UI (#9640) 2026-05-04 22:07:11 +02:00
Usage.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
Users.jsx chore: Security hardening (#9719) 2026-05-08 16:25:45 +02:00
VideoGen.jsx feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
VoiceRecognition.jsx feat: add biometrics UI (#9524) 2026-04-24 08:50:34 +02:00