Project

General

Profile

Feature #3103

Feature #3024: extension 0.92.20 & 0.93: Enable OpenAI answers

BE: Change OpenAI API call

Added by Ram Kordale over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Immediate
Assignee:
Target version:
Start date:
07/02/2023
Due date:
07/03/2023
% Done:

100%

Estimated time:
3.00 h
Spent time:

Description

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 30 words or less")

Also available in: Atom PDF