Skip to content

Commit

Permalink
runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
lokeshk-18 committed Jul 23, 2023
1 parent 245e7d6 commit a60d287
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions chatgptxblock/chatgptxblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ class ChatgptXBlock(StudioEditableXBlockMixin, XBlock):
# print(settings)
# d_name=settings.DISPLAY_NAME
# print("hi",Scope)
def api_init(self, context=None):
xblock_config = self.runtime.handler_env['xblock'].runtime.get_user_state('XBLOCK_CONFIG')
a_key = xblock_config.get('OPENAI_KEY')
print(a_key)
api_init(self)
# def api_init(self, context=None):
xblock_config = runtime.handler_env['xblock'].runtime.get_user_state('XBLOCK_CONFIG')
a_key = xblock_config.get('OPENAI_KEY')
print(a_key)
# api_init(self)
display_name = String(
display_name="Display Name",
help="Display name for this module",
Expand Down

0 comments on commit a60d287

Please sign in to comment.