gptscript-ai / gptscript

Build AI assistants that interact with your systems
https://gptscript.ai
Apache License 2.0
3.07k stars 270 forks source link

chore: add content length when handling json request bodies. #815

Closed cloudnautique closed 2 months ago

cloudnautique commented 2 months ago

Explicitly setting the content length instead of allowing the Go default of transfer encoding chunked. This change only applies to the application/json request body objects using openapi.

cloudnautique commented 2 months ago

@drpebcak can you test this with some of your gptscript openapi integrations?