DevGround
ChatGPT API wrapper
This is a wrapper for the OpenAI's GPT-4 API by DevGround.
Model
The AI model used in this package is GPT-4
License
This package is licensed under the MIT license.
Language
The language used in this package is Python.
Requirements
requires environment variables:
- OPENAI_API_KEY
Installation
Package will be available on PyPI soon.
--install the package with pip:--
pip install gpt4api_dg
Usage
Usage sample is copied from earlier gpt-3.5-turbo project and is subject to change. It is not yet tested with gpt-4.
from dg_chatgpt_api import ChatGPTAPI as api
api.reconnect()
api.add_user("user_id", "username")
api.add_conversation("user_id")
message = {
"role": "user",
"content": "message"
}
response = api.get_response("user_id", message)
Metadata
Release files for gpt4api-dg 0.0.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 | Provenance | Actions |
|---|---|---|---|---|
| gpt4api_dg-0.0.1.tar.gz | 4.0 kB | Without provenance | Details for gpt4api_dg-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gpt4api_dg-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for gpt4api_dg-0.0.1-py3-none-any.whl |
Total release size: 8.6 kB
Release files / gpt4api_dg-0.0.1.tar.gz
| Download URL | gpt4api_dg-0.0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af71e5756be3dfff396b86c0d05e2f9f36138aa47b78bc1403e3105d5c9554cc
|
|
BLAKE2b-256 checksum How to use checksums |
1e6b8983215ddd62c67e5593a296f7eb6d63c726ce802ed1138662859c7748fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / gpt4api_dg-0.0.1-py3-none-any.whl
| Download URL | gpt4api_dg-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e5fcd5c21b7f28a3a123c1c5f41d68be13cc381c58b6e2ded047389b54e477e
|
|
BLAKE2b-256 checksum How to use checksums |
9fe713317bf5a9fb38354ab50608ac3beeff7c97246f68e2f3789ab2fb4ff7ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for gpt4api-dg 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.