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
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.2.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.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sik_llms-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e813726860f1c0a523bd59a2f17ece2a3a08516001df6bedaba389770d70d7be
MD5 25076f9eb29bd5deed492d2948dcc49f
BLAKE2b-256 52fc623f82b658f210b5ec0d80139065e859d9b474fa8710ddf42e2ef2023495

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sik_llms-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0dd75550fa5497e5a5c93233b474d43e4ef6640d9d35c4d2a8f93ddf45c734c6
MD5 ad6cf1ef231de7bd079399eae3006fe0
BLAKE2b-256 8d87905f278f759562afd8691c318c3f7ff33a27b000e7385798dc38ff0d0db8

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