-
python3-ollama-0.4.7-1.lbn36.noarch
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 <model> 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)
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-openai+datalib-1.77.0-1.lbn36.noarch
This is a metapackage bringing in datalib extras requires for python3-openai.
It makes sure the dependencies are installed.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-openai+realtime-1.77.0-1.lbn36.noarch
This is a metapackage bringing in realtime extras requires for python3-openai.
It makes sure the dependencies are installed.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-openai+voice_helpers-1.77.0-1.lbn36.noarch
This is a metapackage bringing in voice_helpers extras requires for
python3-openai.
It makes sure the dependencies are installed.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-openai-1.35.12-1.lbn36.noarch
OpenAI Python LibraryThe OpenAI Python library provides convenient access to
the OpenAI API from applications written in the Python language. It includes a
pre-defined set of classes for API resources that initialize themselves
dynamically from API responses which makes it compatible with a wide range of
versions of the OpenAI API.You can find usage examples for the OpenAI Python
library in...
Located in
LBN
/
…
/
Big Data
/
BastionLinux 36
-
python3-openai-1.77.0-1.lbn36.noarch
The OpenAI Python library provides convenient access to
the OpenAI API from applications written in the Python language. It includes a
pre-defined set of classes for API resources that initialize themselves
dynamically from API responses which makes it compatible with a wide range of
versions of the OpenAI API.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-openai-datalib-1.6.1-1.lbn36.noarch
Data libraries like numpy and pandas are not installed by default due to their
size. They’re needed for some functionality of this library, but generally not
for talking to the API.
Located in
LBN
/
…
/
Big Data
/
BastionLinux 36
-
python3-openai-datalib-1.6.1-1.lbn36.noarch
Data libraries like numpy and pandas are not installed by default due to their
size. They’re needed for some functionality of this library, but generally not
for talking to the API.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-openai-embeddings-1.6.1-1.lbn36.noarch
Install dependencies for embedding utilities.
Located in
LBN
/
…
/
Big Data
/
BastionLinux 36
-
python3-openai-embeddings-1.6.1-1.lbn36.noarch
Install dependencies for embedding utilities.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36