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.4.tar.gz
(44.9 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.4-py3-none-any.whl
(17.6 kB
view details)
File details
Details for the file sik_llms-0.1.4.tar.gz.
File metadata
- Download URL: sik_llms-0.1.4.tar.gz
- Upload date:
- Size: 44.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
154f88bf98e578781140a973e766c45a5a4930e689a2f963fa74a3460e6a99b3
|
|
| MD5 |
5f5f43b51613b366461a07f0cff9bdff
|
|
| BLAKE2b-256 |
9e0dad2907e0df457944c3d28ae58ba4b6fc8f08994f9de6394310e3f553dd98
|
File details
Details for the file sik_llms-0.1.4-py3-none-any.whl.
File metadata
- Download URL: sik_llms-0.1.4-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e2e76ac6fb303d8cd421112f99c27670cba1d24def14d9a8a00020cf6960e1c
|
|
| MD5 |
c80b6819ed96462f0854cdefef4e821e
|
|
| BLAKE2b-256 |
ad26ee5630fd5de1d1fbdc338939f08fddeee07c88a8155d5d2e13f94b28fa5f
|