Python SDK for Corelyn AI API
Project description
corelyn-sdk
Python SDK for Corelyn AI API.
Installation
pip install corelyn-sdk
Usage
For setting the System Prompt once
from corelyn_sdk import CorelynSDK
sdk = CorelynSDK(
api_key="your-api-key",
system_prompt="You are a helpful assistant",
default_model="cerebras/llama3.1-8b"
)
print(sdk.get_ai_response("Explain AI"))
For overiting the System Prompt per prompt
from corelyn_sdk import CorelynSDK
sdk = CorelynSDK("your-api-key")
print(
sdk.get_ai_response(
"Write a joke",
system_prompt="You are a sarcastic comedian"
)
)
For full conversations (good for chatbots)
from corelyn_sdk import CorelynSDK
messages = [
{"role": "system", "content": "You are Corelyn"},
{"role": "user", "content": "Hello"},
{"role": "assistant", "content": "Hi!"},
{"role": "user", "content": "Tell me a joke"}
]
sdk = CorelynSDK("your-api-key")
print(sdk.get_ai_response(messages=messages))
Set diffrent model
sdk.set_model("nvidia/moonshotai/kimi-k2.5")
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
corelyn_sdk-0.2.3.tar.gz
(3.4 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
File details
Details for the file corelyn_sdk-0.2.3.tar.gz.
File metadata
- Download URL: corelyn_sdk-0.2.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ee0ef7ae9d2b61560e2d520e42968572260048c81be912fa7d45474bf56ceca
|
|
| MD5 |
a97107774e20ec476b7b2b1498fae115
|
|
| BLAKE2b-256 |
b02b6ec42821edf2e5ca5d7a588b7558a07228af6c512b161b7a65be7e298609
|
File details
Details for the file corelyn_sdk-0.2.3-py3-none-any.whl.
File metadata
- Download URL: corelyn_sdk-0.2.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac2c277ece2922ae2c6462e11f4bb434d2a7e5f8dd4c434e6088c3013a208ecf
|
|
| MD5 |
d86da080c97e196d4f808c2dd77f1533
|
|
| BLAKE2b-256 |
2c5452b83d653513c6cbb30eb5829b5d98af044fb708157950f357f8dd3d7c76
|