ChatML
Simple functions to convert raw text to ChatML (LLMs speak ChatML)
## Installation
just
pip install chatml-llm
## Usage
from chatml import ChatML
ai = ChatML(role="assistant") # or however you name it
ai.build("Hi, how can I help you?") # self.text inside build is now ChatML'ed string you gave inside
text = ai.build("...", format="str") # returns ChatML'ed text you put inside
Metadata
Release files for chatml-llm 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chatml_llm-0.2.tar.gz | 1.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chatml_llm-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.5 kB
Release files / chatml_llm-0.2.tar.gz
| Download URL | chatml_llm-0.2.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
634162205157badab0e3d3a7f00f1a212a831ca4de222b8fa411d3a0925386a1
|
|
BLAKE2b-256 checksum How to use checksums |
32c8a627d64ad38e138c836435ede462875ec519a9cecf4d6e346f0dbde9a59d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / chatml_llm-0.2-py3-none-any.whl
| Download URL | chatml_llm-0.2-py3-none-any.whl |
|---|---|
| Size | 1.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70e7d169ab61db9b8ac89162d0744c0ec9fcb0b5780b8b8af694f20b38ac7256
|
|
BLAKE2b-256 checksum How to use checksums |
e975f0bc58b49e772b2493392cb46f022dae5fc0e40d9d90f9b0fbd83dbf49bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|