An open API service indexing awesome lists of open source software.

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

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