@@ -26,6 +26,7 @@ An unofficial GUI app for ChatGPT.
2626 - [ Authentication] ( #authentication )
2727 - [ Session Token Guide] ( #session-token-guide )
2828 - [ Session Data] ( #session-data )
29+ - [ Saving/Loading Conversations] ( #savingloading-conversations )
2930 - [ Themes] ( #themes )
3031 - [ Theme File Structure] ( #theme-file-structure )
3132
@@ -52,15 +53,15 @@ If you like this application, be sure to star :)
5253- [x] Session (token) Persistence
5354- [x] Automatic Access Token Refreshing
5455- [x] Multiple Concurrent Conversations
56+ - [x] Conversation Saving & Loading
5557- [x] Multi-line input
5658- [x] Exception Reporter & Traceback Viewer
5759- [x] Themes
5860 - Builtin themes are: [ Breeze Dark, Breeze Light, and Legacy]
5961
6062#### Todo:
61- - [ ] Conversation Saving & Loading
62- - [ ] Retry AI Message
6363- [ ] Pretty Conversation Views
64+ - [ ] Retry AI Message
6465
6566How to Use:
6667---------------
@@ -93,7 +94,7 @@ Refer to session token authentication in the meantime.
9394- Press the Set button, and you should now be authenticated!
9495
9596#### Session Data:
96- Session data is stored in a hidden file (~ /.config/chatgpt_gui/.session.json), for persistence.
97+ Session data is stored in a hidden file (` ~/.config/chatgpt_gui/.session.json ` ), for persistence.
9798When you sign out or clear your session token, it automatically deletes all session data.
9899
99100If you ever need to directly edit your session data, it follows the following format:
@@ -119,6 +120,53 @@ If you ever need to directly edit your session data, it follows the following fo
119120}
120121```
121122
123+ ### Saving/Loading Conversations
124+ You can save your currently selected conversation with ChatGPT by right-clicking any tab and
125+ pressing the ` Export Conversation To... ` button. This will open a file dialog where you can rename
126+ your conversation anything, which will show when loaded.
127+
128+ You can load a conversation that was previously saved by pressing the ` Import Conversation From... `
129+ button, and selecting the JSON file containing the conversation.
130+
131+ By default, all conversations are stored in the ` ~/.cache/chatgpt_gui/ ` directory.
132+ But you can choose any folder when exporting.
133+
134+ ** NOTE: Conversations from one account CANNOT be accessed from another.**
135+
136+ #### Conversation Format:
137+ Conversations are stored as a linear list of messages, where each message is
138+ a response to the one before it. All UUID's are tracked, which allows the Client to
139+ continue conversations after import.
140+
141+ They are stored in the following data format:
142+ ``` json
143+ {
144+ "id" : " Conversation UUID" ,
145+ "messages" : [
146+ {
147+ "id" : " Message UUID" ,
148+ "role" : " user" ,
149+ "content" : {
150+ "content_type" : " text" ,
151+ "parts" : [
152+ " Your message to ChatGPT"
153+ ]
154+ }
155+ },
156+ {
157+ "id" : " Message UUID" ,
158+ "role" : " assistant" ,
159+ "content" : {
160+ "content_type" : " text" ,
161+ "parts" : [
162+ " Response from ChatGPT"
163+ ]
164+ }
165+ }
166+ ]
167+ }
168+ ```
169+
122170### Themes:
123171Themes are a way to style already-existing elements (Think CSS). They are held in a directory with their resources
124172and stylesheet in the same folder level.
0 commit comments