From b27694cbce54bb362f4f84d4bef9e319eab55587 Mon Sep 17 00:00:00 2001 From: lokeshk-incresco Date: Sun, 23 Jul 2023 15:11:41 +0530 Subject: [PATCH] runtime --- chatgptxblock/chatgptxblock.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chatgptxblock/chatgptxblock.py b/chatgptxblock/chatgptxblock.py index 2bdbad2..5fb4121 100644 --- a/chatgptxblock/chatgptxblock.py +++ b/chatgptxblock/chatgptxblock.py @@ -17,12 +17,12 @@ class ChatgptXBlock(StudioEditableXBlockMixin, XBlock): # print(xblock_settings) # print(settings) # d_name=settings.DISPLAY_NAME - print("hi",Scope) + # print("hi",Scope) display_name = String( display_name="Display Name", help="Display name for this module", # default=xblock_settings.get("display_name"), - default=Scope.settings.OPENAI_SECRET_KEY, + default='', scope=Scope.settings, ) @@ -62,7 +62,7 @@ class ChatgptXBlock(StudioEditableXBlockMixin, XBlock): editable_fields = [ 'display_name', # 'model_name', - # 'api_key', + 'api_key', # 'description', # 'context_text', ]