minimaxir / simpleaichat

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

Support requests with `input_schema` and previous `messages`? #32

Closed keyboardAnt closed 1 year ago

keyboardAnt commented 1 year ago

It seems like requests with input_schema overwrite the messages history. Why limit requests such that messages == [system_msg, user_msg_with_input_schema]?

minimaxir commented 1 year ago

self.format_input_messages() uses the entire message history and the line linked is not conditional on input_schema.