Bug #3092
Correct OpenAI API call
Start date:
06/29/2023
Due date:
06/29/2023
% Done:
100%
Estimated time:
1.00 h
Description
Here is the OpenAI call to be made.
query = concat("<subject>", " ", "<user query>")
{
"model": "text-davinci-003",
"prompt": "Explain \"<query>\" in less than 30 words",
"temperature": 0.5,
"max_tokens": 120,
"top_p": 1,
"frequency_penalty": 0.8,
"presence_penalty": 0
}