Skip to content

This is a simple Rust application that uses the GTK library to create a graphical user interface. The app interacts with an API called Ollama Llama 3 to generate responses based on user prompts.

License

Notifications You must be signed in to change notification settings

AndresCdo/ollama-rs-gtk

ollama-rs-gtk

A sleek Rust application leveraging GTK for a user-friendly graphical interface, seamlessly integrating with the Ollama API to generate AI-powered responses.

ollama-rs-gtk

Features

  • Intuitive GUI: Built with GTK for a smooth user experience.
  • AI Integration: Harnesses the power of Ollama's language model for intelligent responses.
  • Cross-Platform: Runs on various operating systems supporting Rust and GTK.

Prerequisites

Ensure you have the following installed on your system:

  • Rust (latest stable version)
  • GTK3 (version 3.24 or higher)
  • Ollama (make sure the Ollama service is running)

Installation

  1. Clone the repository:

    git clone https://github.com/AndresCdo/ollama-rs-gtk.git
  2. Navigate to the project directory:

    cd ollama-rs-gtk
  3. Build the application:

    cargo build --release

Usage

  1. Start the Ollama service (if not already running).

  2. Launch the application:

    cargo run --release
  3. Enter your prompt in the text field and click "Send" to generate a response.

Configuration

  • To modify API endpoints or model parameters, edit the config.toml file in the project root.

Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-branch-name.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature-branch-name.
  5. Submit a pull request.

Troubleshooting

  • If you encounter GTK-related errors, ensure your GTK installation is correct and up-to-date.
  • For API issues, check your internet connection and verify that the Ollama service is running.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • GTK-rs for Rust bindings to GTK
  • Ollama for providing the AI model API
  • All contributors who have helped shape this project

Contact

For support or queries, please open an issue on the GitHub repository or contact the maintainer at [your-email@example.com].

About

This is a simple Rust application that uses the GTK library to create a graphical user interface. The app interacts with an API called Ollama Llama 3 to generate responses based on user prompts.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published