llmplus
Usage
from llmplus.ChatGot.api import API, Models
authorization_key = 'your authorization key from website headers'
api = API(authorization_key)
api.model = Models.GPT4()
answer = api.send('who is the manager of the real madrid?')
asnwer2 = api.send('who is the CEO?')
Models
Models.GPT4
Models.GPT3
Models.Claude2
Acsess to the chat history
API.json_data['messages']
Extracting code block set extract_code to the type of code block to return just the code block
asnwer2 = api.send('who is the CEO?', extract_code = "json")
LLM output: #===================== your output is here
{"a": "ssdgs"}
#=====================
LLM output with extract_code: #===================== {"a": "ssdgs"} #=====================
Release files for llmplus 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llmplus-0.2.1.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llmplus-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.2 kB
Release files / llmplus-0.2.1.tar.gz
| Download URL | llmplus-0.2.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
600a5b9a770d1cb2ed7245e003bfeba0b7870aae8a1f4a3ea0921731dac0f9d9
|
|
BLAKE2b-256 checksum How to use checksums |
97db4c0433f86fcf4958e38febd0460b71bcb9a2d12c3665477482a1d5339293
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / llmplus-0.2.1-py3-none-any.whl
| Download URL | llmplus-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
528c16ba9bb032fe2edfb81380feef21d04d765127bb437a62c13f885ceaffdb
|
|
BLAKE2b-256 checksum How to use checksums |
4fc8b09f6a4d1c306650d3112591adfc03053e8e0c48fc77d99da892f1eaff21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|