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.1.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file trivialai-0.0.1.tar.gz
.
File metadata
- Download URL: trivialai-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61f2fa57df14f6a803a82f8243e0bc8477c54529f27c485090a491a65d5f37ef |
|
MD5 | 6aa73a53771dce74ae98595db270d934 |
|
BLAKE2b-256 | 0897fed989b3635b9cd485742db701a803a1368a1231c468000f2e8ac339e742 |
File details
Details for the file trivialai-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: trivialai-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 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 | 4c1531f160d8e5f9e729d9eef168238ecd2e7deb80d80b087c78d40d91e11b1a |
|
MD5 | 076997f304a457c9ec4a8657ec1465e6 |
|
BLAKE2b-256 | b78ce7a47dfc754c51672a8468540d65d671fe7572acd3036ba13f44e5da5a4e |