GithubHelp home page GithubHelp logo

mirableio / chat-history Goto Github PK

View Code? Open in Web Editor NEW
44.0 2.0 9.0 369 KB

ChatGPT history exploration

Home Page: https://mirable.io

License: MIT License

Makefile 0.32% Python 43.80% HTML 7.85% JavaScript 46.72% CSS 1.32%
chatgpt chatgpt-chat-history chatgpt-history chatgpt-python

chat-history's Introduction

ChatGPT history

UI for navigating and organizing OpenAI's ChatGPT conversations.

Important: This project is 100% unaffiliated with OpenAI.

Features

  • See activity graph and useful statistics
  • Quickly browse and open the chats
  • Search chats (semantic and "strict")
  • List of favorite chats
  • Open conversations on the ChatGPT site

Screenshot

Setup

Currently can only be installed locally. Requires Python 3.10+

  1. Export ChatGPT history
  2. Unzip the download, place conversations.json in the data folder
  3. make install
  4. make run
  5. Open http://127.0.0.1:8080 in your browser
  6. Optional - copy secrets.template.toml to data/secrets.toml and update OpenAI API key, then restart the server. First run will take a while to create embeddings. 10MB JSON: ~30 min, ~$0.10 cost.

chat-history's People

Contributors

kuchin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chat-history's Issues

Show metadata

            "message": {
                "id": "---",
                "author": {
                    "role": "system",
                    "name": null,
                    "metadata": {}
                },
                "create_time": null,
                "update_time": null,
                "content": { "content_type": "text", "parts": [""] },
                "status": "finished_successfully",
                "end_turn": null,
                "weight": 1.0,
                "metadata": {
                    "is_user_system_message": true,
                    "user_context_message_data": {
                        "about_user_message": "XXXX",
                        "about_model_message": "YYYYY"
                    }
                },
                "recipient": "all"
            },

The current code doesn't accept the previous version of the conversion.json file since the Chatpt began until 20/12/2022

I have noticed an issue on your project the current code hasn't accepted the previous version of the conversion.json file since the Chatpt began until 20/12/2022 there is an explanation:

Differences between my modification and your current code In history.py:

  1. Pydantic Usage:

    • Difference: my modification uses Pydantic's BaseModel and Field for defining the Part class, whereas your current code doesn't.
    • Reason: Pydantic is a data validation and serialization library. The usage of BaseModel suggests that my modification is likely aiming for better data validation and easier serialization/deserialization.
  2. Typing Imports:

    • Difference: my modification has a separate import statement for typing functionalities compared to your current code.
    • Reason: Different import statements can change how types are referred to in the code. The one in my modification might be more standard or clearer.
  3. Attributes in Part Class:

    • Difference: my modification defines several attributes (like asset_pointer, size_bytes, etc.) that are not present in your current code.
    • Reason: These attributes likely represent important data fields for the Part class. Their absence in your current code suggests it might be an incomplete or older version.
  4. Parts Attribute:

    • Difference: Both files have a parts attribute, but they are defined differently. your current code has a more complex type hint involving OrderedDict.
    • Reason: This suggests that the structure of the parts attribute was changed or is being considered for a change. The usage of OrderedDict might indicate an attempt to maintain the order of elements.
  5. Commented parent_id:

    • Difference: your current code has the parent_id attribute commented out.
    • Reason: It's possible that there was uncertainty about whether this attribute should be included or not. Commenting it out might have been a temporary measure.

Conclusion:

my modification seems to be a more refined and updated version with better data validation using Pydantic and clearer type hints. It's advisable to consider it as the base and merge any necessary changes from history.py if needed.

Cross-chats

When viewing a conversation, highlight if I have messages in another conversation with similar timestamp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.