v1.0.0
Release Notes for Golamify v1.0.0
Release Date: November 4, 2024
Overview
This is the initial release of the Golamify package, a Go-based client for interacting with the Ollama API. Golamify enables users to generate responses from language models. It is designed for developers seeking to integrate AI model generation features within their Go applications.
Key Features
1. Client Initialization
NewClient: Initializes the client with default configurations or user-defined settings.PingOllama: Verifies connectivity to the Ollama server during client initialization.- Configurable host and timeout options.
2. Model Generation
Generate: Generates responses based on a model and prompt specified by the user.- Automatically pulls the model if it is not locally available.
3. Model Management
ShowModel: Checks if the specified model exists on the server.PullModel: Pulls the specified model from the Ollama server if needed.
Configuration Defaults
- Host:
http://localhost:11434 - Timeout: 30 seconds
- User-Agent: Custom user-agent string (
golamify-client/1.0) for tracking client version and runtime environment.
Error Handling
- Golamify provides descriptive error messages across all methods, ensuring users can troubleshoot connectivity, model availability, and request/response issues effectively.
This initial release aims to provide a reliable foundation for integrating Ollama model interactions in Go applications.