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.5.tar.gz (45.3 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.5-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sik_llms-0.1.5.tar.gz
Algorithm Hash digest
SHA256 12de280e6255ee1ca16ebf3981f7893ffee330e176f5474c5c13c0a67c5e6b34
MD5 6daab6933317786d057ba970026bd249
BLAKE2b-256 ac3c360cbaf37a20e7fce4326203cb105cf693327622c403685459d2df17c315

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sik_llms-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c533f62334dce1ad6e567799a1cbc2b6b156b7cf34265bc78cfef849c18808a0
MD5 c6381504d893b5107a25bda74ae71181
BLAKE2b-256 01fed5b5e37120980b080ab10c48c76543dcfbe8871e2e1d6607f420a9fe0b0b

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