ZigLLM is a wrapper around LLM APIs such as OpenAI.
ZigLLM aims to provide simple interfaces for common LLM APIs. For example, here's how you can use the OpenAI API:
Add it to your build.zig.zon
file:
.{
.name = "zig-example-use",
.version = "0.0.1",
.dependencies = .{
.zig_llm = .{
.url = "https://github.com/mattfreire/zig-llm/archive/refs/tags/v0.0.3.tar.gz",
.hash = "1220145cd26ccbbf94dd8c23c4d66acc4fbf56cec2c876592000732ce6b7481278b9",
},
},
.paths = .{""},
}
Check the example folder for how to use ZigLLM.
- Implement more endpoints from the OpenAI API
- Handle streaming responses
- Abstract system messages so they can be passed in
- Write tests
- Error handling