Skip to content

Releases: prasad89/golamify

v1.0.1

06 Nov 03:08

Choose a tag to compare

What's Changed

  • Enhanced PullModel with Visual Feedback
    Integrated visual feedback in PullModel during model retrieval, improving the user experience by providing progress updates.

  • Updated Generate Function for Streaming Responses
    Modified the Generate function to support real-time response handling via channels, allowing for seamless streaming of responses.

  • Expanded GeneratePayload Struct
    Added new fields (Suffix, Images, System, Template, Context, Stream, Raw, KeepAlive) to the GeneratePayload struct, offering increased customization options in API requests.

  • Documentation Updates
    Updated README.md and examples to reflect recent changes, ensuring documentation is up-to-date with the latest features.

v1.0.0

04 Nov 11:56

Choose a tag to compare

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.