Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23218

Inspect openai raw network request and response

$
0
0

I'm using Python openai library to make some calls to chat.completions.create and I want to inspect the raw requests and responses alongside with the JSON request body and responses from the model.I attempted to set logging levels of openai and requests library to DEBUG but I only see request body and response headers without response body, also tried openai.log = "debug" but same result. What options do I have?


Viewing all articles
Browse latest Browse all 23218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>