INNER CODE UNIT · Python
render_home_tab
seratch/ChatGPT-in-Slack · main.py:42
def render_home_tab(client: WebClient, context: BoltContext):
already_set_api_key = os.environ["OPENAI_API_KEY"]
client.views_publish(
user_id=context.user_id,
view=build_home_tab(
openai_api_key=already_set_api_key,
context=context,
single_workspace_mode=True,
),
)
if USE_SLACK_LANGUAGE is True:
@app.middleware
def set_locale(
context: BoltContext,
client: WebClient,
next_,