Simple LM api wrappers for production
Project description
jaZYK
Simple LM api wrappers for production
Supports:
- OpenAI
- Anthropic
- Gemini
- DeepSeek
- Together
Key Features:
- Structured Output logic (with retries)
- Caching (ephemeral in-memory and/or on-disk sqlite)
- Supports images for Anthropic and OpenAI
Add a PR if you want to add another provider!
Installation
uv add zyk
or
pip install zyk
Usage
from zyk import LM
lm = LM(model_name="gpt-4o-mini", temperature=0.0)
class HelpfulResponse(BaseModel):
greeting: str
name: str
print(lm.respond_sync(system_message="You are a helpful assistant", user_message="Hello, how are you?", response_model=HelpfulResponse))
Name
ZYK is short for "Z you know"
python -m build
twine check dist/*
twine upload dist/*
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
zyk-0.2.20.tar.gz
(102.9 kB
view details)
Built Distribution
zyk-0.2.20-py3-none-any.whl
(22.9 kB
view details)
File details
Details for the file zyk-0.2.20.tar.gz
.
File metadata
- Download URL: zyk-0.2.20.tar.gz
- Upload date:
- Size: 102.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c515be48ff3ffc9e32c4cc0456c799603cffc4d728ff38268a6ae0dcd0298217 |
|
MD5 | b000fd28660f7ea30d9fb1ed24caa700 |
|
BLAKE2b-256 | 4ad8b88be9c912dc5fc55a7213ac0b19f38d0dae37c00bd07982ef3427de2462 |
File details
Details for the file zyk-0.2.20-py3-none-any.whl
.
File metadata
- Download URL: zyk-0.2.20-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9a75446570cd8f8b8472a3086a4c2156bc41f2694a44e018bf13642b545da16 |
|
MD5 | d2e2c2e58937531619d76b1836db5e67 |
|
BLAKE2b-256 | 78d52e6670aa1ecbddad44cb1ac28285b1751498402e3ca57ef413ee4d4c06a9 |