[PR #6661] [CLOSED] **feat**: ability to download answers in table format as an Excel or CSV file #21931

Closed
opened 2026-04-20 03:48:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/6661
Author: @mafzaal
Created: 11/2/2024
Status: Closed

Base: devHead: export-markdown-table


📝 Commits (4)

  • 07ca341 A 'Download CSV' button is appended to response messages actions if response content contains Markdown tables, enabling easy export of data as CSV files.
  • dd448fa feat: Add filename generation task for Markdown table-based downloads
  • b942cfe Introduce settings for filename auto-generation (toggle) and introduce admin configuration options for filename generation prompt template
  • 89b80d7 Removed error import

📊 Changes

11 files changed (+346 additions, -5 deletions)

View changed files

📝 backend/open_webui/config.py (+7 -0)
📝 backend/open_webui/constants.py (+1 -0)
📝 backend/open_webui/main.py (+83 -0)
📝 backend/open_webui/utils/task.py (+18 -0)
📝 src/lib/apis/index.ts (+40 -0)
📝 src/lib/components/admin/Settings/Interface.svelte (+15 -0)
📝 src/lib/components/chat/Messages/Markdown.svelte (+11 -2)
📝 src/lib/components/chat/Messages/ResponseMessage.svelte (+86 -3)
📝 src/lib/components/chat/Settings/Interface.svelte (+28 -0)
📝 src/lib/i18n/locales/en-US/translation.json (+7 -0)
src/lib/utils/converters/index.ts (+50 -0)

📄 Description

This PR is for feat: ability to download answers in table format as an Excel or CSV file

Changelog Entry

Description

Added functionality to download CSV files when response contents contain markdown tables. Introduce auto-generation of file names with optional admin customization.

Added

  • Download multiple CSV files if multiple tables present
    Download CSV
  • Generate file names from content
  • Admin setting for filename generation prompt template
    image
  • Chat settings for auto-file name generation toggle
    image
  • Use 'data.csv' when either could not generate file name or auto filename generation is off

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/6661 **Author:** [@mafzaal](https://github.com/mafzaal) **Created:** 11/2/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `export-markdown-table` --- ### 📝 Commits (4) - [`07ca341`](https://github.com/open-webui/open-webui/commit/07ca341e6fb5d1ac8b7923523006f50370025b1e) A 'Download CSV' button is appended to response messages actions if response content contains Markdown tables, enabling easy export of data as CSV files. - [`dd448fa`](https://github.com/open-webui/open-webui/commit/dd448facc4aaac8eed5252c8da63c0de4bab23ef) feat: Add filename generation task for Markdown table-based downloads - [`b942cfe`](https://github.com/open-webui/open-webui/commit/b942cfebc20732342a1fdfc0c1d5c1e5b9fb4f32) Introduce settings for filename auto-generation (toggle) and introduce admin configuration options for filename generation prompt template - [`89b80d7`](https://github.com/open-webui/open-webui/commit/89b80d73f85d9714d761aa993ac4cb5832525c1b) Removed error import ### 📊 Changes **11 files changed** (+346 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+7 -0) 📝 `backend/open_webui/constants.py` (+1 -0) 📝 `backend/open_webui/main.py` (+83 -0) 📝 `backend/open_webui/utils/task.py` (+18 -0) 📝 `src/lib/apis/index.ts` (+40 -0) 📝 `src/lib/components/admin/Settings/Interface.svelte` (+15 -0) 📝 `src/lib/components/chat/Messages/Markdown.svelte` (+11 -2) 📝 `src/lib/components/chat/Messages/ResponseMessage.svelte` (+86 -3) 📝 `src/lib/components/chat/Settings/Interface.svelte` (+28 -0) 📝 `src/lib/i18n/locales/en-US/translation.json` (+7 -0) ➕ `src/lib/utils/converters/index.ts` (+50 -0) </details> ### 📄 Description This PR is for [**feat**: ability to download answers in table format as an Excel or CSV file](https://github.com/open-webui/open-webui/issues/1612) # Changelog Entry ### Description Added functionality to download CSV files when response contents contain markdown tables. Introduce auto-generation of file names with optional admin customization. ### Added - Download multiple CSV files if multiple tables present ![Download CSV](https://github.com/user-attachments/assets/ccd7dd69-b952-483e-b80c-036a20fef1b8) - Generate file names from content - Admin setting for filename generation prompt template ![image](https://github.com/user-attachments/assets/5ffd98c1-4260-419d-9407-74c7ac61c8cf) - Chat settings for auto-file name generation toggle ![image](https://github.com/user-attachments/assets/001bb965-88f1-4a73-b207-c5507f721ba5) - Use 'data.csv' when either could not generate file name or auto filename generation is off --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 03:48:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#21931