#148 · Primary category: LLM Application Frameworks

gollm

ai anthropic dspy genai generative-ai generative-ai-tools go golang groq language-model llm openai prompt-engineering prompt-optimization structured-output

Unified Go interface for Language Model (LLM) providers. Simplifies LLM integration with flexible prompt management and common task functions.

Project last updated:03/21/26

GitHub Stars

674

Forks

67

Contributors

17

License

Apache-2.0

Why we included this project

Go teams that need to talk to more than one LLM provider usually end up maintaining a separate integration for each one. gollm collapses that into a single interface covering OpenAI, Anthropic, Groq, Ollama, Mistral, and OpenRouter, so switching models or vendors is a configuration change rather than a rewrite of your call sites. Beyond plain generation it bundles the pieces most LLM apps build anyway: prompt templates with context and directives, JSON schema validation for structured output, a chain-of-thought helper, memory across turns, and a prompt optimizer that refines your instructions. For content workflows, structured data extraction, or side-by-side model comparison, that gives Go teams a consistent native layer without assembling those parts themselves.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category