Skip to content

haskell-ai/chat-rosetta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chat-rosetta

Small CLI to convert a single chat session between Google AI Studio JSON and Open WebUI export JSON.

Build

  • Requires ghc and cabal on PATH.
  • Build: cabal build

Usage

  • AI Studio -> Open WebUI (single session array): cabal run chat-rosetta -- aistudio-to-openwebui --in /path/to/aistudio.json --out /path/to/openwebui.json [--title "Optional Title"]

  • Open WebUI -> AI Studio: cabal run chat-rosetta -- openwebui-to-aistudio --in /path/to/chat-export.json --out /path/to/aistudio.json

Notes

  • One session at a time:
    • Open WebUI inputs must contain exactly one session in the top-level array; the tool errors otherwise.
    • AI Studio inputs are single-conversation JSON files.
  • No pretty-printing: outputs are compact JSON using Aeson encode.
  • Messages only: discards all thinking/thought content and historical versions. Preserves the system prompt.
  • Open WebUI export fills both chat.history (canonical) and chat.messages with the current linear chain. IDs and timestamps are generated if missing.
  • AI Studio export includes minimal runSettings, using model inferred from source if available.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors