Open chudegao opened 1 week ago
The original code in openai_completion() only use the first prompt and missed last 4 of a batch(default is 5) prompts. The fix is adding an extra loop to use all prompts of the batch to call openai chat completion api to generate data.
The original code in openai_completion() only use the first prompt and missed last 4 of a batch(default is 5) prompts. The fix is adding an extra loop to use all prompts of the batch to call openai chat completion api to generate data.