pionxzh / chatgpt-exporter

Export and Share your ChatGPT conversation history
MIT License
1.32k stars 103 forks source link

Update image/HTML export colors to match ChatGPT UI #227

Closed michaelskyba closed 7 months ago

michaelskyba commented 7 months ago

This PR fixes https://github.com/pionxzh/chatgpt-exporter/issues/226.

Source used as reference for the new colors: https://cdn.oaistatic.com/_next/static/css/27480e870671f7ed.css

Example visual comparison:

Light mode

Ground truth screenshot

0

HTML export (old)

0

HTML export (new)

0

Image export (old)

0

Image export (new)

0


Dark mode

Ground truth screenshot

0

HTML export (old)

0

HTML export (new)

0

Image export (old)

0

Image export (new)

0

pionxzh commented 7 months ago

LGTM. Thanks!

I will check why there is a weird [Unsupported Content]

michaelskyba commented 7 months ago

I will check why there is a weird [Unsupported Content]

I believe that occurs because the backend inserts an additional system message as part of the Memory feature

0

1711817261

If I disable Memory, then that block doesn't show up in the HTML export. Let me know if you want me to test anything, or to show you how to enable Memory for your account if you don't already have it.

pionxzh commented 7 months ago

Oh wow, I don't know about that feature. How can I enable it? It's not in the setting panel.

michaelskyba commented 7 months ago

Only a small subset of users are supposed to have access to it (the rest will not have the necessary Personalization section in their settings), but it's possible to enable it early. Here is a thread I made on Twitter that describes that in detail.

Short version: intercept the request to /backend-api/accounts/check/v4-2023-04-27 and add sunshine_available to the features array in the JSON

pionxzh commented 7 months ago

fixed with https://github.com/pionxzh/chatgpt-exporter/commit/a99c9f127b3bbdfc3b7d2b1e302a27af4bdaa39d