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
```json
{"a": "ssdgs"}
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.0.7.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file llmplus-0.0.7.tar.gz
.
File metadata
- Download URL: llmplus-0.0.7.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6df4eb8f7dffe99098ecb1739ef1fcf5e0992d3ea202506deac1a6967005dd0 |
|
MD5 | 43eadbe3c97969a147e92b2b57d9949a |
|
BLAKE2b-256 | b8cd818ad11d91ffef3fac910b5bd0160875893dc033fec71b709efcf4e473ce |
File details
Details for the file llmplus-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: llmplus-0.0.7-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed6af3a1005627559d732a87189cf72ce2e5af9424b1e90bce8290cf4c51ae4c |
|
MD5 | 8025cb1238c033657ee8dd2080f61317 |
|
BLAKE2b-256 | 7f19bd0cef3a7a2ca31fe55e156f4fda8d5d9bf1229f732b8cec59ba9a7e18f0 |