I was missing an OpenAI SDK for my Zig projects, and the ones that existed didn’t have support for streaming. You can use this to call models like gpt-4o for terminal clients or whatever.
Tool use support is in the works
This is my first published package so would love to hear your thoughts!
This is a good first library, looks focused and useful.
A bit of style feedback: Zig errors are, by convention, PascalCased, so you’d have error.BadRequest rather than error.BAD_REQUEST as would be normal in C and C++.
It would also be useful to clearly document which part of the system is responsible for what memory, which may also involve some decisions on your part.