minimaxir / simpleaichat

Python package for easily interfacing with chat apps, with robust features and minimal code complexity.
MIT License
3.43k stars 224 forks source link

Support `AIChat.save_session(format="dict")` to receive the session's info in-memory #15

Closed keyboardAnt closed 1 year ago

keyboardAnt commented 1 year ago

Following this question, although it is after sending to the API.

minimaxir commented 1 year ago

Not merging, since it's sorta unnecessary and user can do:

ai.default_session.dict(
            exclude={"auth", "api_url", "input_fields"},
            exclude_none=True,
        )