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.6.tar.gz
(45.6 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.6-py3-none-any.whl
(17.7 kB
view details)
File details
Details for the file sik_llms-0.1.6.tar.gz.
File metadata
- Download URL: sik_llms-0.1.6.tar.gz
- Upload date:
- Size: 45.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
970f7c566ec8c50e14e11f0768c474a1848fc01f035023cb245e4565e8589fd6
|
|
| MD5 |
7e9b92cea2708ddd92752a684a811f51
|
|
| BLAKE2b-256 |
568ed212f5908e40f9313c61fca254b6cd5105c0bcca19624f2cca351c2ca814
|
File details
Details for the file sik_llms-0.1.6-py3-none-any.whl.
File metadata
- Download URL: sik_llms-0.1.6-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
157e730682abc7258b506689f80a328cc99297758f7a595395cfdb1d161eb9de
|
|
| MD5 |
06c3a4066f0980061546e627e865e4f7
|
|
| BLAKE2b-256 |
e6d13b5da5f842337abbd4738d0a2e5a831da6a911587a820ecf927933bc1b8d
|