A trivial set of API bindings for AI models, because I'd like them to be easy to use.
Project description
TrivialAI
(A set of requests
-based, trivial bindings for AI models)
Basic models
GCP
>>> client = gcp.GCP("gemini-1.5-flash-001", "/path/to/your/gcp_creds.json", "us-central1")
>>> client.generate("This is a test message. Use the word 'platypus' in your response.", "Hello there! :D").content
"Hello! :D It's great to hear from you. Did you know platypuses are one of the few mammals that lay eggs? 🥚 They are truly fascinating creatures! What can I help you with today? 😊"
>>>
Ollama
>>> client = ollama.Ollama("gemma2:2b", "http://localhost:11434/")
>>> client.generate("This is a test message. Use the word 'platypus' in your response.", "Hello there! :D").content
'Hey! Did you know platypuses lay eggs and have webbed feet? Pretty cool, huh? 😁'
>>>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
trivialai-0.0.2.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file trivialai-0.0.2.tar.gz
.
File metadata
- Download URL: trivialai-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26180bb9c3d31d65514ee77ebd4dc1da0992e04fe66731dd81a6e8713bfc6650 |
|
MD5 | 242a55092a5f54baf146ba12a5c59a36 |
|
BLAKE2b-256 | df25fc205b3fdec79604f152c7112376eea7cbe752853671c270510c24ae4559 |
File details
Details for the file trivialai-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: trivialai-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6791963332b21cef0006ae739e45fb3409bba9d74465f2e0a8661310975d60bb |
|
MD5 | 45a0ae312903efe7e70f62554df4344d |
|
BLAKE2b-256 | cea0730666f33706b97f9349a082ed93ed8cbf371ef96e07c5f7384581a64ba6 |