Skip to content

An OpenedX XBlock to communicate with ChatGPT in your courses.

License

Notifications You must be signed in to change notification settings

CodeWithEmad/chatgpt-xblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT for Open edX

This repository contains an Open edX XBlock that brings the power of OpenAI's ChatGPT to your Open edX course.

Features

  • Engaging, dynamic chat interface powered by ChatGPT.
  • Customizable prompts and settings to tailor the AI's responses.
  • Works seamlessly with the edX ecosystem.

Installation

This method works with tutor. feel free to add a method that works with devstack.

First, go to your requirements directory:

cd $(tutor config printroot)/env/build/openedx/requirements/

update the private.txt (if you don't have that, create one) and add the chatgpt-xblock repo to it:

echo "git+https://github.com/CodeWithEmad/chatgpt-xblock.git" >> private.txt

and build a new image:

tutor images build openedx

in your studio, in your desired course, go to Advanced Settings and add "chatgpt" in the Advanced Module List.

Advanced Module in Open edX Screenshot

Development

There's no need to build a new image, if you just want to play with the xblock.

First, clone the repo in the requirements directory:

cd $(tutor config printroot)/env/build/openedx/requirements/
git clone [email protected]:CodeWithEmad/chatgpt-xblock.git

exec to the cms container and install the XBlock:

tutor dev exec -it cms bash
cd ../requirements
pip install -e chatgpt-xblock

Note: This is not the best practice to develop an XBlock, but it works if you don't want to build dev image.

License

This work is licensed under the terms of the GNU Affero General Public License (AGPL).

About

An OpenedX XBlock to communicate with ChatGPT in your courses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published