Project

General

Profile

Feature #3103

Updated by Ram Kordale over 1 year ago

 



 Change OpenAI API call to: 

 POST /v1/completions 
 { 
   "model": "text-davinci-003", 
   "prompt": <ourPrompt>, 
   "temperature": 0, 
   "max_tokens": 60, 
   "top_p": 1, 
   "frequency_penalty": 0, 
   "presence_penalty": 0 
 } 

 ourPrompt = concat("explain", <what user typed>, "with one example in "in", <subject of book>, "in 30 words or less")

Back