This is the first PR of the "Add AI Assistant Service" series, which will consist of 3 PRs in total.
-PR for the "[2/3] Add AI Assistant Service - add the "Add Type Annotation" Python UDF action" : https://github.com/Texera/texera/pull/2811
-PR for the "[3/3] Add AI Assistant Service - add the "Add All Type Annotation" Python UDF action" : https://github.com/Texera/texera/pull/2812
This PR introduces an AI Assistant flag that allows users to switch between "none" (disabling the AI assistant) and "openai" (using OpenAI as the AI assistant). If the 'none' flag is selected, all AI features will be hidden and unavailable to the user. If the 'openai' flag is selected, AI features will be enabled and accessible in the Python UDF editor. (The implementation of these AI features will be covered in PR2 of 3 and PR3 of 3).
Key idea of each new file:
(1) AiAssistantManager.scala:
Handling results corresponding to the two cases obtained from the flag.
(2) AiAssistantResource.scala:
Implement three RESTful API endpoints to manage AI flag.
Notice:
Since the AI features are in the second and third PRs, the RESTful API functionality in this PR cannot be tested yet, as it will only be used in the second and third PRs. However, if you just want to test the result, you can print the result of the boolean for the testing purpose by calling the frontend method checkAiAssistantEnabled().
This is the first PR of the "Add AI Assistant Service" series, which will consist of 3 PRs in total. -PR for the "[2/3] Add AI Assistant Service - add the "Add Type Annotation" Python UDF action" : https://github.com/Texera/texera/pull/2811 -PR for the "[3/3] Add AI Assistant Service - add the "Add All Type Annotation" Python UDF action" : https://github.com/Texera/texera/pull/2812
This PR introduces an AI Assistant flag that allows users to switch between "none" (disabling the AI assistant) and "openai" (using OpenAI as the AI assistant). If the 'none' flag is selected, all AI features will be hidden and unavailable to the user. If the 'openai' flag is selected, AI features will be enabled and accessible in the Python UDF editor. (The implementation of these AI features will be covered in PR2 of 3 and PR3 of 3).
Key idea of each new file: (1) AiAssistantManager.scala:
Handling results corresponding to the two cases obtained from the flag. (2) AiAssistantResource.scala: Implement three RESTful API endpoints to manage AI flag.
Notice: Since the AI features are in the second and third PRs, the RESTful API functionality in this PR cannot be tested yet, as it will only be used in the second and third PRs. However, if you just want to test the result, you can print the result of the boolean for the testing purpose by calling the frontend method
checkAiAssistantEnabled()
.