Open keyboardAnt opened 1 year ago
This is intentional. From the relase notes: https://github.com/minimaxir/simpleaichat/releases/tag/v0.2.0
In all cases, no messages are saved when using schema to prevent unintended behavior. You will have to manage the intermediate output yourself for the time being, if you want to chain inputs.
I need to do a lot more testing for testing if schema output can be used in future requests because OpenAI's documentation doesn't cover it.
This is intentional. From the relase notes: https://github.com/minimaxir/simpleaichat/releases/tag/v0.2.0
In all cases, no messages are saved when using schema to prevent unintended behavior. You will have to manage the intermediate output yourself for the time being, if you want to chain inputs.
I need to do a lot more testing for testing if schema output can be used in future requests because OpenAI's documentation doesn't cover it.
What do think about In [8]
in their How_to_call_functions_with_chat_models.ipynb?
Hmm, fair counterpoint, I missed that implication from the example.
The concern would be then you would have to pass the same function/schema with every ChatGPT API call from then on for the rest of the session.
Maybe it's worth adding a functions
field to ChatGPTSession
to log the functions used as input_schema
, although this potentially creates a new problem with session saving loading...
and I'm able to reproduce the issue. Here's an example:
Then,
ai.get_session().messages == []
. 🥲(Note: This issue is with the latest commit,
d8f04a5c0414356337beb0c392236ee48c38b865
)