putkoff_chatGPT_API
putkoff_chatGPT_API is a Python module for interacting with OpenAI's GPT models. It simplifies the process of making API calls, managing API keys, and parsing responses, while also providing utility functions to work with timestamps and organize response data.
Features
- Supports multiple GPT models and endpoints
- Automatically manages API keys using dotenv
- Generates prompts and handles token size restrictions
- Parses responses and handles JSON data
- Provides utility functions for timestamps and date formatting
- Organizes response data in a structured manner
- Includes a simple GUI for user interaction
Usage
To use the module, import it and call the send_query function with the necessary parameters, such as prompt, endpoint, model, and max tokens. The module will handle the API call, process the response, and return the results.
Example:
from putkoff_chatGPT_API import send_query
# Set up parameters
prompt = "What is the capital of France?"
endpoint = "/v1/chat/completions"
model = "gpt-3.5-turbo"
max_tokens = 50
# Send the query
response = send_query(prompt, endpoint, model, max_tokens)
# Process the response as needed
print(response)
# putkoff_chatGPT_API
Metadata
Release files for putkoff-chatGPT-API 0.1.0
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 |
|---|---|---|---|---|
| putkoff_chatGPT_API-0.1.0.tar.gz | 1.9 kB | Without provenance | Details for putkoff_chatGPT_API-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| putkoff_chatGPT_API-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for putkoff_chatGPT_API-0.1.0-py3-none-any.whl |
Total release size: 3.8 kB
Release files / putkoff_chatGPT_API-0.1.0.tar.gz
| Download URL | putkoff_chatGPT_API-0.1.0.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
214996ce00aa6737a7d128b974c64e843f3ba3d201b4b5d90cb5799470943a28
|
|
BLAKE2b-256 checksum How to use checksums |
9fa00908790bbca35e5c5ad8223f7e66dc0ba6205cafd08bcd35bf7cee4dffe1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / putkoff_chatGPT_API-0.1.0-py3-none-any.whl
| Download URL | putkoff_chatGPT_API-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57b15e1efd52b23ae1a68129eae856d2a02994e98239e6f6c62dcf72eed74008
|
|
BLAKE2b-256 checksum How to use checksums |
9d258a123578f3026dbefbde4e52ab764834c3a2b663a4226c08745521cc376f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for putkoff-chatGPT-API 0.1.0
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.