-
-
Save KyMidd/c5ff9bdf65c9ea91709a37626fa04ef7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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