From 9e335bf2b28aed80e8aab3d87612513211a3869e Mon Sep 17 00:00:00 2001 From: lokeshk-incresco Date: Sun, 23 Jul 2023 14:23:22 +0530 Subject: [PATCH] scope --- chatgptxblock/chatgptxblock.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chatgptxblock/chatgptxblock.py b/chatgptxblock/chatgptxblock.py index 80369bb..49184e8 100644 --- a/chatgptxblock/chatgptxblock.py +++ b/chatgptxblock/chatgptxblock.py @@ -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, )