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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sik_llms-0.1.5-py3-none-any.whl
(17.7 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12de280e6255ee1ca16ebf3981f7893ffee330e176f5474c5c13c0a67c5e6b34
|
|
| MD5 |
6daab6933317786d057ba970026bd249
|
|
| BLAKE2b-256 |
ac3c360cbaf37a20e7fce4326203cb105cf693327622c403685459d2df17c315
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c533f62334dce1ad6e567799a1cbc2b6b156b7cf34265bc78cfef849c18808a0
|
|
| MD5 |
c6381504d893b5107a25bda74ae71181
|
|
| BLAKE2b-256 |
01fed5b5e37120980b080ab10c48c76543dcfbe8871e2e1d6607f420a9fe0b0b
|