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.3.tar.gz (41.2 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.3-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sik_llms-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ef9a7c706c6220d8242dbc4390467f30b7b781fcccc6615543258ae7f5e770ce
MD5 3bc5b5b16cb1748468a059b051dbe66a
BLAKE2b-256 2ab8a917e014d7c7bc52ee47408b6db7462b8bd650f7c2236e82c1a71cb18c03

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sik_llms-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2df4fb5c287d4194f0b9ffed785092669963436097dfde2284223f9c72607c0e
MD5 bc3279315c7ea0b6b7ef202e586bd594
BLAKE2b-256 e4ec122e16b47248cd10b85b8a010ed878d9dbd7b115867d3de67d20f32e0a79

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