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)
| File | Size | Uploaded | |
|---|---|---|---|
| openai_requests_utils-0.0.8.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|