A package for batch processing with OpenAI API.
Project description
GPT Batcher
A simple tool to batch process messages using OpenAI's GPT models.
Installation
Clone this repository and run:
Usage
Here's how to use the GPTBatcher
:
from gpt_batch.batcher import GPTBatcher
batcher = GPTBatcher(api_key='your_key_here', model_name='gpt-3.5-turbo-1106')
result = batcher.handle_message_list(['your', 'list', 'of', 'messages'])
print(result)
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
gpt_batch-0.1.1.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file gpt_batch-0.1.1.tar.gz
.
File metadata
- Download URL: gpt_batch-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 818bddc5257b28f4580d01c835cb69d5964a57ab196147133dba8bf42130fe9e |
|
MD5 | 5ae85a41ff9446346093be6eadb43f01 |
|
BLAKE2b-256 | 2e1bf6dc531be1e95553d088258283b46c93967872b02e9ee9098c3afff732ca |
File details
Details for the file gpt_batch-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: gpt_batch-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bc09d58a4131060f265d5b1fd9dfb0a387e991eba6ecbd2f6e2b8fd310f62b1 |
|
MD5 | e590a3394d80a5ec16689bea73e0b44d |
|
BLAKE2b-256 | 74a2de322f86132450cf62988bb3540698c162660cf61d3ef22facaaed5c9c8b |