[PR #15309] [CLOSED] FEAT: adding export as JSON or JSONL to playground, import button #46835

Closed
opened 2026-04-29 21:47:35 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/15309
Author: @cvaz1306
Created: 6/25/2025
Status: Closed

Base: devHead: feat/add-save-button-to-playground-jsonl


📝 Commits (1)

  • 7e4b24a adding export as JSON or JSONL to playground, import button

📊 Changes

60 files changed (+1032 additions, -6 deletions)

View changed files

📝 backend/open_webui/retrieval/web/brave.py (+3 -1)
📝 backend/open_webui/routers/images.py (+5 -3)
src/lib/components/icons/Export.svelte (+19 -0)
📝 src/lib/components/playground/Chat.svelte (+220 -1)
📝 src/lib/i18n/locales/ar-BH/translation.json (+14 -0)
📝 src/lib/i18n/locales/ar/translation.json (+14 -0)
📝 src/lib/i18n/locales/bg-BG/translation.json (+14 -0)
📝 src/lib/i18n/locales/bn-BD/translation.json (+14 -0)
📝 src/lib/i18n/locales/bo-TB/translation.json (+14 -0)
📝 src/lib/i18n/locales/ca-ES/translation.json (+14 -0)
📝 src/lib/i18n/locales/ceb-PH/translation.json (+14 -0)
📝 src/lib/i18n/locales/cs-CZ/translation.json (+14 -0)
📝 src/lib/i18n/locales/da-DK/translation.json (+14 -0)
📝 src/lib/i18n/locales/de-DE/translation.json (+14 -0)
📝 src/lib/i18n/locales/dg-DG/translation.json (+14 -0)
📝 src/lib/i18n/locales/el-GR/translation.json (+14 -0)
📝 src/lib/i18n/locales/en-GB/translation.json (+14 -0)
📝 src/lib/i18n/locales/en-US/translation.json (+15 -1)
📝 src/lib/i18n/locales/es-ES/translation.json (+14 -0)
📝 src/lib/i18n/locales/et-EE/translation.json (+14 -0)

...and 40 more files

📄 Description

Description

  • This PR adds buttons to the playground interface allowing you to export a prompt as a JSON conversation (importable as a chat), or as a JSONL file, importable again into the playground interface.

Changelog

Added

  • Added "Export as JSON" button to Playground
  • Added "Export as JSONL" button to Playground
  • Added "Import as JSONL" button to Playground

Additional Information

  • The playground is often used for prompt testing with LLMs, an it is often difficult to save your working prompt. This PR aims to fix that

🔄 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/15309 **Author:** [@cvaz1306](https://github.com/cvaz1306) **Created:** 6/25/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/add-save-button-to-playground-jsonl` --- ### 📝 Commits (1) - [`7e4b24a`](https://github.com/open-webui/open-webui/commit/7e4b24a997761259d5cfc89eb7d8557748ac9a05) adding export as JSON or JSONL to playground, import button ### 📊 Changes **60 files changed** (+1032 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/retrieval/web/brave.py` (+3 -1) 📝 `backend/open_webui/routers/images.py` (+5 -3) ➕ `src/lib/components/icons/Export.svelte` (+19 -0) 📝 `src/lib/components/playground/Chat.svelte` (+220 -1) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/ar/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/bo-TB/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/ca-ES/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/ceb-PH/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/cs-CZ/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/da-DK/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/dg-DG/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/el-GR/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/en-GB/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/en-US/translation.json` (+15 -1) 📝 `src/lib/i18n/locales/es-ES/translation.json` (+14 -0) 📝 `src/lib/i18n/locales/et-EE/translation.json` (+14 -0) _...and 40 more files_ </details> ### 📄 Description ## Description - This PR adds buttons to the playground interface allowing you to export a prompt as a JSON conversation (importable as a chat), or as a `JSONL` file, importable again into the playground interface. ## Changelog ### Added - Added "Export as JSON" button to Playground - Added "Export as JSONL" button to Playground - Added "Import as JSONL" button to Playground --- ### Additional Information - The playground is often used for prompt testing with LLMs, an it is often difficult to save your working prompt. This PR aims to fix that --- <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-29 21:47:36 -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#46835