Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created February 28, 2025 00:17
Show Gist options
  • Select an option

  • Save KyMidd/c5ff9bdf65c9ea91709a37626fa04ef7 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/c5ff9bdf65c9ea91709a37626fa04ef7 to your computer and use it in GitHub Desktop.
def response_on_slack(client, streaming_response, message_ts, channel_id, thread_ts):
# Print streaming response
if os.environ.get("VERA_DEBUG", "False") == "True":
print("🚀 Streaming response:", streaming_response["stream"])
# Counter and buffer vars for streaming response
response = ""
token_counter = 0
buffer = ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment