Closed stephantul closed 8 months ago
The example in the README doesn't work. I installed prompttools, upgraded openai to the latest version. The following snippet is what I ran.
prompttools
openai
from prompttools.experiment import OpenAIChatExperiment prompts = ["Tell me a joke.", "Is 17077 a prime number?"] models = ["gpt-3.5-turbo"] temperatures = [0.0] openai_experiment = OpenAIChatExperiment(models, prompts, temperature=temperatures) openai_experiment.run()
This throws the following error when calling run.
run
openai.error.InvalidRequestError: 'Tell me a joke.' is not of type 'array' - 'messages'
I will have a look at this. Thanks for opening this issue.
🐛 Describe the bug
The example in the README doesn't work. I installed
prompttools
, upgradedopenai
to the latest version. The following snippet is what I ran.This throws the following error when calling
run
.