Skip to content

📗 docs: Document fileConfig.officePreview for Large PowerPoint and Word Previews - #790

Open
TomasPalsson wants to merge 2 commits into
LibreChat-AI:mainfrom
TomasPalsson:docs/office-preview-setting
Open

TomasPalsson wants to merge 2 commits into
LibreChat-AI:mainfrom
TomasPalsson:docs/office-preview-setting

Conversation

@TomasPalsson

@TomasPalsson TomasPalsson commented Sep 29, 2026 •

Copy link
Copy Markdown

Companion to LibreChat-AI/LibreChat#16518 — this documents the new fileConfig.officePreview setting it adds, so please merge it after that PR.

Summary

When code execution produces a PowerPoint or Word file larger than 350 KB, LibreChat currently cannot show the real document in the side panel: up to 2 MB it shows a plain text outline, and above 2 MB it shows "Preview unavailable". The companion LibreChat change stores a small preview page for these files and has the viewer's browser load the file's own bytes from file storage when the preview opens, so decks and documents up to 25 MB preview as the real document.

That behavior is controlled by a new fileConfig.officePreview object in librechat.yaml. This PR documents it on the File Config page.

Changes

  • Add officePreview to the list of fileConfig fields and to the full example.
  • Add an officePreview section describing enabled (default true) and fileSizeLimit (MB, default 25, must be 0 or more), and what users see with the setting off or above the limit.

Testing

  • pnpm run build passes locally.

@vercel

vercel Bot commented Sep 29, 2026

Copy link
Copy Markdown

@TomasPalsson is attempting to deploy a commit to the LibreChat's projects Team on Vercel.

A member of the Team first needs to authorize it.

…-setting

# Conflicts:
#	content/docs/configuration/librechat_yaml/object_structure/file_config.mdx

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant