https://github.com/zefir1990/ollama_call
Simplified call to ollama with json response
https://github.com/zefir1990/ollama_call
Last synced: 6 days ago
JSON representation
Simplified call to ollama with json response
- Host: GitHub
- URL: https://github.com/zefir1990/ollama_call
- Owner: zefir1990
- License: mit
- Created: 2026-01-05T12:54:24.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-01-09T15:38:08.000Z (5 months ago)
- Last Synced: 2026-02-21T21:20:29.830Z (3 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ollama-call
A simple Python wrapper for Ollama API calls.
## Installation
```bash
pip install ollama-call
```
## Usage
```python
from ollama_call import ollama_call
response = ollama_call(
user_prompt="Hello, how are you?",
format="json",
model="gemma3:12b"
)
print(response)
```
## Features
- Simple function-based API
- Supports JSON output format
- Supports streaming (via `stream=True`)
- Custom temperature and timeout settings