Useful utils to use with openai models
Project description
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 }
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openai_requests_utils-0.0.7.tar.gz.
File metadata
- Download URL: openai_requests_utils-0.0.7.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d37dfd9788cd587d2a8bec10ee549747c1ba01237a0eac0827a36dfd5994b992
|
|
| MD5 |
154d0b5b9a6f17cb0e1464f7efc8cc7b
|
|
| BLAKE2b-256 |
edd60f4deca66a9d34dd9ecb7077c4f8315cfedc2a25a6650f536530cef2e611
|
File details
Details for the file openai_requests_utils-0.0.7-py3-none-any.whl.
File metadata
- Download URL: openai_requests_utils-0.0.7-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea8897fb8a3ffcfb415c1d6a768374c428ae5a7e9cdf2f51efbb48d342f739cc
|
|
| MD5 |
268bbd002eb61da96487811413a262d0
|
|
| BLAKE2b-256 |
fbb9c375988ce3e399a4e25ed398f648cb598d19cf90e9d3923279c68051fdb2
|