Implements a simple API interface for large language models, enabling interaction with services like Ollama, Anthropic, Mistral, and OpenAI.
Go-llm provides a unified interface for interacting with various Large Language Models (LLMs). It supports maintaining message sessions, tool calling (including custom tools), generating embedding vectors, streaming responses, multi-modal support for images and audio, and text-to-speech capabilities (OpenAI only). The package includes a command-line tool for easy interaction with the API, as well as programmatic usage through Go code, allowing developers to integrate LLM functionalities into their applications seamlessly. It supports providers like Ollama, Anthropic, Mistral, and OpenAI.
主な機能
01Maintains sessions of messages for conversational AI
02Generates embedding vectors from text
03Enables tool calling with custom tool plugins
04Supports Ollama, Anthropic, Mistral, and OpenAI LLMs
05Supports streaming responses
062 GitHub stars
ユースケース
01Generating text embeddings for semantic search
02Implementing custom tools and plugins for LLMs
03Image Caption Generation
04Building chatbots and conversational AI applications