Project

General

Profile

Feature #3061

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

Backend requirements

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

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

100%

Estimated time:
(Total: 11.50 h)
Spent time:
(Total: 18.50 h)

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

Task #3060: BE-0.92.20: Enable API for the openAI answers.Closed06/07/202306/08/2023Ayush Khandelwal

Actions
Task #3063: BE-0.92.20: Add OpenAI Config settings.Closed06/08/202306/08/2023Ayush Khandelwal

Actions
Task #3064: BE-0.92.20: Add support to the getPurpleLinksInfoExtFull API.Closed06/08/202306/09/2023Ayush Khandelwal

Actions
Task #3066: BE-0.92.20: Fetch the KEY from the datastore for the OpenAI Answer.Rejected06/08/202306/08/2023

Actions
Task #3074: BE-0.92.20: Allow caching to the OpenAI encrypted secret key.Closed06/20/202306/23/2023Ayush Khandelwal

Actions
Task #3084: BE-v0.93: Add the backend support for the version 0.93 in the getPurpleLinkInfoExtFull API.Closed06/22/202306/23/2023Ayush Khandelwal

Actions
Task #3105: BE-v0.93: Log the openai call details in the GCP using url present in the answer api.Closed07/03/202307/03/2023Ayush Khandelwal

Actions
#1

Updated by Ram Kordale over 1 year ago

  • Description updated (diff)
#2

Updated by Ayush Khandelwal over 1 year ago

  • Status changed from New to Resolved

Working as expected

#3

Updated by Ayush Khandelwal over 1 year ago

  • Status changed from Resolved to Feedback
#4

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.

#5

Updated by Ayush Khandelwal over 1 year ago

  • Assignee changed from Ayush Khandelwal to Ram Kordale

Working as expected

#6

Updated by Ram Kordale over 1 year ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF