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.1.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file llmplus-0.2.1.tar.gz
.
File metadata
- Download URL: llmplus-0.2.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 600a5b9a770d1cb2ed7245e003bfeba0b7870aae8a1f4a3ea0921731dac0f9d9 |
|
MD5 | 07139a9672f51e88513e7c1994ec6222 |
|
BLAKE2b-256 | 97db4c0433f86fcf4958e38febd0460b71bcb9a2d12c3665477482a1d5339293 |
File details
Details for the file llmplus-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: llmplus-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.6 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 | 528c16ba9bb032fe2edfb81380feef21d04d765127bb437a62c13f885ceaffdb |
|
MD5 | d017a95061dba75311057ca72a6a4242 |
|
BLAKE2b-256 | 4fc8b09f6a4d1c306650d3112591adfc03053e8e0c48fc77d99da892f1eaff21 |