A package for using llm models with api
Project description
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"} #=====================
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
llmplus-0.2.0.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file llmplus-0.2.0.tar.gz
.
File metadata
- Download URL: llmplus-0.2.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e44813d2f731f340226cc8fae4c29f9b9c7ea27e2fbfe46790ec2b24643620 |
|
MD5 | 6635b742e9b5c43b65bb3db5b1988d83 |
|
BLAKE2b-256 | 70c5c32709cd7eb2661a4cae12ce2c3fb9a89fd101b9ba9926cd0c6dc315fbc9 |
File details
Details for the file llmplus-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: llmplus-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9e7ca48a07d53d4e5a9ee60a7b5b2d2fb210f92e0126ebeb06b1466535120cb |
|
MD5 | 66cd2f5a14dbeab03507f7b3b00bbf76 |
|
BLAKE2b-256 | 92cbf64ba7b97464724a59eb962bd080da2d129bd5037f4d362c601aef90271a |