go-llama-api

Unofficial Go client for the Meta Llama API, generated from Meta's OpenAPI spec. llama.NewClientWithResponses("https://api.llama.com/v1", auth) from github.com/psyb0t/go-llama-api gives typed methods for chat completions (CreateChatCompletionWithResponse), models (ListModelsWithResponse, RetrieveModelWithResponse), moderations (ModerationsWithResponse) and file uploads (PostUploadsWithResponse, GetUploadsUploadIdWithResponse, PostUploadsUploadIdWithResponse), with responses decoded into JSON200 and error structs. Auth is a Bearer API key set through a RequestEditorFn. Use when Go code needs to call the Llama API or already imports go-llama-api.

Install

openclaw skills install @psyb0t/go-llama-api