Skip to main content

openai_requests_utils

You need to create an environment variable called "OPENAI_API_KEY" which contains your OpenAI API key. You also need to create a config file called oai_config.json in the same folder as your script to choose the model and the API call parameters. Every parameter except "model" is optional and can be removed.

Example of oai_config.json: { "model": "gpt-3.5-turbo-1106", "max_response_length": 400, "timeout": 10, "temperature": 1, "top_p": 0.95, "presence_penalty": 0.5, "frequency_penalty": 0.5 }

Metadata

Release files for openai-requests-utils 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openai-requests-utils 0.0.8
File Size Uploaded
openai_requests_utils-0.0.8.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openai-requests-utils 0.0.8
File Interpreter ABI Platform
openai_requests_utils-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / openai_requests_utils-0.0.8.tar.gz

Download URL openai_requests_utils-0.0.8.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e954aa587c8abfc488bf04ce55a1be19eb8e2a60544ee937c5f497e4b233fc5b
BLAKE2b-256 checksum
How to use checksums
cc4bfab41d01f1c29706155b4a998fe1956cfedc8fb32513e6b428512cae87e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.6

Release files / openai_requests_utils-0.0.8-py3-none-any.whl

Download URL openai_requests_utils-0.0.8-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31b9c5909e42d544fa66c754d530d60ab0d2d63f1d59f8445369d0f76b908e95
BLAKE2b-256 checksum
How to use checksums
4343ffaa7e046ae3828f2b11bbdd560ee8dfa920f99430195463311c6245c55d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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