Feature #3061
Feature #3024: extension 0.92.20 & 0.93: Enable OpenAI answers
Backend requirements
100%
Description
[No need for a java library to access OpenAI. Using the https endpoint is sufficient.]
Let the api do the following:
if (api key is present) make call to openai and return the response
else send 512 words of Lorem ipsum content
In the settings page, allow to set the api key. Encrypt the key and store in the datastore. While using, decrypt and use in the call.
Subtasks
Updated by Ayush Khandelwal over 1 year ago
API ENDPOINT URL: http://edutestqa.appspot.com/admin/content/api/v1/answer
Method: "POST"
Request Body: (application/json)
{
"searchTerm": "Once upon a time"
}
If api is enabled & the key is present, then it will give the response from openai. If not then it will return 512 words lorem ipsum.
Updated by Ayush Khandelwal over 1 year ago
- Assignee changed from Ayush Khandelwal to Ram Kordale
Working as expected