Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,10 +108,10 @@ async def on_reaction_add(reaction, user):
|
|
| 108 |
# Create a thread or use existing one
|
| 109 |
thread = message.thread
|
| 110 |
if thread is None:
|
| 111 |
-
thread = await message.create_thread(name=f"Debug Thread: '{cleaned_message[0:
|
| 112 |
|
| 113 |
response = await debug_teapot_inference(server_name, user_input)
|
| 114 |
-
await thread.send("Context:\n"+discord.utils.escape_markdown(response))
|
| 115 |
|
| 116 |
|
| 117 |
|
|
|
|
| 108 |
# Create a thread or use existing one
|
| 109 |
thread = message.thread
|
| 110 |
if thread is None:
|
| 111 |
+
thread = await message.create_thread(name=f"Debug Thread: '{cleaned_message[0:30]}...'", auto_archive_duration=60)
|
| 112 |
|
| 113 |
response = await debug_teapot_inference(server_name, user_input)
|
| 114 |
+
await thread.send("Context:\n"+discord.utils.escape_markdown(response[0:2000]))
|
| 115 |
|
| 116 |
|
| 117 |
|