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

Access Function Calling responses before Pydantic's parsing #37

Open keyboardAnt opened 1 year ago

keyboardAnt commented 1 year ago

For debug purposes, is it possible to access the raw response of a Function Calling request before Pydantic's parsing? Thanks!

minimaxir commented 1 year ago

Pydantic doesn't parse the response, the raw JSON is just loaded (I did have Pydantic parse it but it was a usability issue there).

Not sure if there's a user-friendly approach for it. Maybe a parameter to also return the API response?

keyboardAnt commented 1 year ago

Maybe a parameter to also return the API response?

Sounds legit.