Download the PHP package futuremeng/ollama-laravel without Composer
On this page you can find all versions of the php package futuremeng/ollama-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download futuremeng/ollama-laravel
More information about futuremeng/ollama-laravel
Files in futuremeng/ollama-laravel
Package ollama-laravel
Short Description This is my package ollama-laravel
License MIT
Homepage https://github.com/futuremeng/ollama-laravel
Informations about the package ollama-laravel
Ollama-Laravel Package
Ollama-Laravel is a Laravel package that provides a seamless integration with the Ollama API. It includes functionalities for model management, prompt generation, format setting, and more. This package is perfect for developers looking to leverage the power of the Ollama API in their Laravel applications.
If you use laravel 10.x, please use the following version V1.0.9
Installation
Configuration
Published config file:
Authentication
Note: The Ollama server itself does not include built-in authentication. The authentication features in this package are designed to work with reverse proxy setups (like Nginx, Caddy, or Apache) that add authentication in front of your Ollama server.
The package supports both Basic Authentication and Bearer Token Authentication when accessing Ollama through a reverse proxy. This is particularly useful when:
- Deploying Ollama in a production environment
- Securing access to your Ollama instance
- Running Ollama behind a corporate firewall
Common reverse proxy setups:
- Nginx with basic auth or token validation
- Caddy with authentication middleware
- Apache with auth modules
Basic Authentication
To use Basic Authentication with your reverse proxy, set the following environment variables:
Bearer Token Authentication
To use Bearer Token Authentication, set the following environment variables:
Custom Headers
You can add custom headers in the configuration file:
Usage
Basic Usage
Vision Support
Chat Completion
Chat Completion with tools
Streamable responses
All versions of ollama-laravel with dependencies
guzzlehttp/guzzle Version ^7.8
illuminate/contracts Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.16