@@ -95,17 +95,15 @@ def respond_in_assistant_thread(
9595 channel_id = payload ["channel" ]
9696 thread_ts = payload ["thread_ts" ]
9797
98- loading_messages = [
99- "Teaching the hamsters to type faster…" ,
100- "Untangling the internet cables…" ,
101- "Consulting the office goldfish…" ,
102- "Polishing up the response just for you…" ,
103- "Convincing the AI to stop overthinking…" ,
104- ]
105-
10698 set_status (
10799 status = "Drafting..." ,
108- loading_messages = loading_messages ,
100+ loading_messages = [
101+ "Teaching the hamsters to type faster…" ,
102+ "Untangling the internet cables…" ,
103+ "Consulting the office goldfish…" ,
104+ "Polishing up the response just for you…" ,
105+ "Convincing the AI to stop overthinking…" ,
106+ ],
109107 )
110108
111109 replies = client .conversations_replies (
@@ -120,6 +118,7 @@ def respond_in_assistant_thread(
120118 messages_in_thread .append ({"role" : role , "content" : message ["text" ]})
121119
122120 returned_message = call_llm (messages_in_thread )
121+
123122 stream_response = client .chat_startStream (
124123 channel = channel_id ,
125124 thread_ts = thread_ts ,
0 commit comments