Troubleshooting
Debugging
Overview
The Instructor
class has a withDebug()
method that can be used to debug the request and response.
It displays detailed information about the request being sent to LLM API and response received from it, including:
- request headers, URI, method and body,
- response status, headers, and body.
This is useful for debugging the request and response when you are not getting the expected results.