OpenAI Utils
OpenAI Utils is a simple, reusable Python module that makes it easy to interact with the OpenAI API. It provides utility functions for generating text completions, listing available models, and more. This package is designed for developers who want to integrate OpenAI's powerful language models into their applications with minimal setup.
Features
- Text Completion: Generate text based on a prompt using various OpenAI models.
- Model Listing: Easily retrieve a list of available OpenAI models.
- Customizable: Adjust parameters like temperature, max tokens, and more to fit your needs.
Installation
You can install the package directly from PyPI:
pip install mr_openai_module
## Usage
from mr_openai_module.openai_client import OpenAIClient
client = OpenAIClient(api_key="your_openai_api_key")
response = client.generate_text("Tell me a joke.")
print(response)
Metadata
Release files for mr-openai-module 0.1.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 | |
|---|---|---|---|
| mr_openai_module-0.1.1.tar.gz | 1.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mr_openai_module-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.5 kB
Release files / mr_openai_module-0.1.1.tar.gz
| Download URL | mr_openai_module-0.1.1.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
129940bbc4e04b40057412056bbcadef7845561d2f5d45f4fc400b1f2e26d619
|
|
BLAKE2b-256 checksum How to use checksums |
90b1650c9990ab00b2e3ea12f8fee5a85860fdd8d67d52e9fe44d8933cf6cbd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|
Release files / mr_openai_module-0.1.1-py3-none-any.whl
| Download URL | mr_openai_module-0.1.1-py3-none-any.whl |
|---|---|
| Size | 1.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ddf891a23c065165d811ffc6e42be692b6f23b1fde9387cf6be0dec71d9e6a39
|
|
BLAKE2b-256 checksum How to use checksums |
55339cd6b757ee73a51f9122f300a06a1243b407e7479573ec80ec15aa6b2d2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|