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.19.tar.gz
(102.7 kB
view details)
Built Distribution
zyk-0.2.19-py3-none-any.whl
(22.5 kB
view details)
File details
Details for the file zyk-0.2.19.tar.gz
.
File metadata
- Download URL: zyk-0.2.19.tar.gz
- Upload date:
- Size: 102.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f01c6d5f914f0d4274e28b4a71d857b40912756d8ad69a040f04e3a140fcf832 |
|
MD5 | 450cc7748e71965649a000def92e7725 |
|
BLAKE2b-256 | e957c2b62b6afaab7e0838e6513f713d942a2b7bcfd3be076ace431a8f879657 |
File details
Details for the file zyk-0.2.19-py3-none-any.whl
.
File metadata
- Download URL: zyk-0.2.19-py3-none-any.whl
- Upload date:
- Size: 22.5 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 | 3ce301638afc275524c3f856ecd30f12a6540cef978d76ff148ee1a27d3689cd |
|
MD5 | 4e2c18abf9a05e3b021630a7e8e71044 |
|
BLAKE2b-256 | 263ad8cbeabf3d9911a3b4bbfecaa02830990d593a0040f3c7c82b2f34016016 |