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.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file llmplus-0.1.0.tar.gz
.
File metadata
- Download URL: llmplus-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de5a53e755dfda6dbde6e0a183f55638f2aa8fa3fc51294c92104f96c0c1187e |
|
MD5 | 26e74bbddc092edb34a3eedb21de48be |
|
BLAKE2b-256 | 7a8a28111f37801eb072f23c9565d57fee4828777bf436380ad82c0451bb2903 |
File details
Details for the file llmplus-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: llmplus-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 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 | 9349e9babfae9ffde70b812ed0bade82b58b1903f4c9f73fb8e5afbc4f209073 |
|
MD5 | 2cfc03f87b1c36b78656ef1aa3f634a0 |
|
BLAKE2b-256 | 8ed17624b7c4fe67a88be3be8b303ef1c85cccf7533239a515eb165d0443654f |