You are here: Home / LBN / Up2date / Data Science / BastionLinux 36 / python3-ollama-0.4.7-1.lbn36.noarch

python3-ollama-0.4.7-1.lbn36.noarch

Package Attributes
RPM  python3-ollama-0.4.7-1.lbn36.noarch.rpm Architecture  noarch Size  105719 Created  2025/02/06 09:15:33 UTC
Package Specification
Summary The official Python client for Ollama.
Group Unspecified
License ZPL
Home Page https://pypi.org/project/ollama
Description

Ollama Python Library The Ollama Python library provides the easiest way to integrate Python 3.8+ projects with Ollama. Prerequisites

Ollama should be installed and running Pull a model to use with the library: ollama pull e.g. ollama pull llama3.2

See Ollama.com for more information on the models available.

Usage from ollama import chat from ollama import ChatResponse

response: ChatResponse = chat(model=llama3.2, messages=[ { 'role': user, 'content': Why is the sky blue?, }, ]) print(response['message']['content'])

print(response.message.content)

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
rpmlib(FileDigests)  
Provides
python-ollama
python3-ollama
python3.10-ollama
python3.10dist(ollama)
python3dist(ollama)
Obsoletes
python-ollama

Document Actions