Skip to main content

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


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.21.tar.gz (103.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zyk-0.2.21-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file zyk-0.2.21.tar.gz.

File metadata

  • Download URL: zyk-0.2.21.tar.gz
  • Upload date:
  • Size: 103.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for zyk-0.2.21.tar.gz
Algorithm Hash digest
SHA256 4cfec580ab080242b9715c2a7a4c0227d194004afed5040241c06c0003096b2b
MD5 fe5358073ca9ae7ae63a2f8b7d6b1121
BLAKE2b-256 065675db731d7c21a9922a20d64a53283665e2a8d9d13307835dcc3d40acf6b3

See more details on using hashes here.

File details

Details for the file zyk-0.2.21-py3-none-any.whl.

File metadata

  • Download URL: zyk-0.2.21-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for zyk-0.2.21-py3-none-any.whl
Algorithm Hash digest
SHA256 71f81794460c78640d3f3b3d86de5af3f0dd20db9eaa2e331f4563ec49f810c2
MD5 e1b182f15ed5cbffb098af525735e50a
BLAKE2b-256 b35ca0d96054b5ae0e794c80c9dc2201bf9cc707b43b61ffd82893294ba47ccc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page