Skip to main content

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)

Source distribution for gpt4api-dg 0.0.1
File Size Uploaded
gpt4api_dg-0.0.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gpt4api-dg 0.0.1
File Interpreter ABI Platform
gpt4api_dg-0.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page