PHP OpenAI Bulk Processing Script
Budget: $30 – $35 USD
Project Deadline: Within 1 Day
Project Budget: $35
Project Overview:
Simple script to submit prompt queries to the OpenAI API one by one & save each output as a TXT file.
Technical Requirements
- Language: PHP - 8.2+
- Server Type: Linux Ubuntu
- Script must process 2-3 requests at a time & wait for each response.
- Responses from the API can take up to 3 minutes
OpenAI Request Requirement
- Type: Chat Completion - https://platform.openai.com/docs/guides/chat/introduction
- Model: gpt-4
- Secret Key: Will be provided
Input File
User should be able to upload a TXT file with the following two columns:
- Title: Used for TXT file naming
- Prompt: Used for OpenAI API request
Output Requirement
- Each output from OpenAI API should be saved as a TXT file with the following naming template {title}-{timestamp}.txt
- On each run, TXT files should be batched into groups of maximum 50 files, put in a zip file & automatically downloaded for a user. ZIP file name template: {countOfFiles}-bulkai-{timestamp}.zip
- In each ZIP also output a TXT file that outputs a list of titles of any failed requests. File name template: {countOfRows}-{timestamp}-error-log.txt
Project Budget: $35
Project Overview:
Simple script to submit prompt queries to the OpenAI API one by one & save each output as a TXT file.
Technical Requirements
- Language: PHP - 8.2+
- Server Type: Linux Ubuntu
- Script must process 2-3 requests at a time & wait for each response.
- Responses from the API can take up to 3 minutes
OpenAI Request Requirement
- Type: Chat Completion - https://platform.openai.com/docs/guides/chat/introduction
- Model: gpt-4
- Secret Key: Will be provided
Input File
User should be able to upload a TXT file with the following two columns:
- Title: Used for TXT file naming
- Prompt: Used for OpenAI API request
Output Requirement
- Each output from OpenAI API should be saved as a TXT file with the following naming template {title}-{timestamp}.txt
- On each run, TXT files should be batched into groups of maximum 50 files, put in a zip file & automatically downloaded for a user. ZIP file name template: {countOfFiles}-bulkai-{timestamp}.zip
- In each ZIP also output a TXT file that outputs a list of titles of any failed requests. File name template: {countOfRows}-{timestamp}-error-log.txt