Skip to main content

placeholder

Project description

sik-llms

Easy llm interface. Sync and Async support.

from sik_llms import create_client, user_message, ChatChunkResponse

model = create_client(
    model_name='gpt-4o-mini',  # or e.g. 'claude-3-7-sonnet-latest'
    temperature=0.1,
)
message = user_message("What is the capital of France?")

# sync
response = model(messages=[message])

# async streaming
responses = []
summary = None
async for response in model.run_async(messages=[message]):
    if isinstance(response, ChatChunkResponse):
        print(response.content, end="")
        responses.append(response)
    else:
        summary = response

print(summary)

Installation

uv install sik-llms or pip install sik-llms

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

sik_llms-0.1.4.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

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

sik_llms-0.1.4-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file sik_llms-0.1.4.tar.gz.

File metadata

  • Download URL: sik_llms-0.1.4.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.11

File hashes

Hashes for sik_llms-0.1.4.tar.gz
Algorithm Hash digest
SHA256 154f88bf98e578781140a973e766c45a5a4930e689a2f963fa74a3460e6a99b3
MD5 5f5f43b51613b366461a07f0cff9bdff
BLAKE2b-256 9e0dad2907e0df457944c3d28ae58ba4b6fc8f08994f9de6394310e3f553dd98

See more details on using hashes here.

File details

Details for the file sik_llms-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sik_llms-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.11

File hashes

Hashes for sik_llms-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2e2e76ac6fb303d8cd421112f99c27670cba1d24def14d9a8a00020cf6960e1c
MD5 c80b6819ed96462f0854cdefef4e821e
BLAKE2b-256 ad26ee5630fd5de1d1fbdc338939f08fddeee07c88a8155d5d2e13f94b28fa5f

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