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.3.tar.gz
(41.2 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.3-py3-none-any.whl
(15.8 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef9a7c706c6220d8242dbc4390467f30b7b781fcccc6615543258ae7f5e770ce
|
|
| MD5 |
3bc5b5b16cb1748468a059b051dbe66a
|
|
| BLAKE2b-256 |
2ab8a917e014d7c7bc52ee47408b6db7462b8bd650f7c2236e82c1a71cb18c03
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2df4fb5c287d4194f0b9ffed785092669963436097dfde2284223f9c72607c0e
|
|
| MD5 |
bc3279315c7ea0b6b7ef202e586bd594
|
|
| BLAKE2b-256 |
e4ec122e16b47248cd10b85b8a010ed878d9dbd7b115867d3de67d20f32e0a79
|