Fix: resolve issue with chatgpt and ai-coach xblock #618
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This PR fixed the issue related to ChatGPT and Coach AI block.
For coach AI, the latest version is not backward compatible with the Koa release. So, I created a branch from version 1.0.7 and pulled some commits from upstream to fix the required issue. Additionally, to support the latest code, the version of OpenAI is bumped in it. The commit here making it incompatible with koa.
edly-io/ai-coach-xblock@1.0.7...Anas/Fix-devstack-issues
For the chatgpt block, the code was not compatible with the bump version of OpenAI. So, we have to update the code to support the logic with openai=1.65.5. Additionally, the syntax issue in the JS file regarding getting elements is resolved. Below is a rebase of ChatGPT xblock with some improvement/bug fixes.
https://github.com/abconlinecourses/chatgpt-xblock/compare/main...edly-io:chatgpt-xblock:Anas/Fix-chatgpt-xblock?expand=1
Views: