Skip to content

Commit

Permalink
scope
Browse files Browse the repository at this point in the history
  • Loading branch information
lokeshk-18 committed Jul 23, 2023
1 parent 3034fad commit 9e335bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chatgptxblock/chatgptxblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ class ChatgptXBlock(StudioEditableXBlockMixin, XBlock):
# print(xblock_settings)
# print(settings)
# d_name=settings.DISPLAY_NAME
print("hi",Scope)
display_name = String(
display_name="Display Name",
help="Display name for this module",
default=xblock_settings.get("display_name"),
# default=d_name,
# default=xblock_settings.get("display_name"),
default=Scope.settings.OPENAI_SECRET_KEY,
scope=Scope.settings,
)

Expand Down

0 comments on commit 9e335bf

Please sign in to comment.