be4f54890b032a0a8d9d144c2fc93f9df53ad2f1
Match the Workspace pin so language and stdlib features through 1.27 are allowed. Co-authored-by: Cursor <cursoragent@cursor.com>
go-llm
Go Library for chat LLM calls (gitea.neitzel.de/konrad/go-llm). Domain language is in CONTEXT.md. Decisions live in the Workspace at docs/adr/go-llm/.
v1: Chat, Stream, List Models, temperature, and max tokens. Adapters: Ollama native (/api/chat, /api/tags) and OpenAI-compatible (/v1/chat/completions, /v1/models). No embeddings, tools, raw generate, Nextcloud types, or story types.
client, err := gollm.NewClient(gollm.AdapterOpenAI, "http://localhost:8000", "")
text, err := client.Chat(ctx, []gollm.Message{{Role: gollm.RoleUser, Content: "Hello"}}, gollm.Options{Model: "llama"})
Languages
Go
100%