mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
Merge 2d7501b4ac into 05d8f11085
This commit is contained in:
commit
4b590976fc
1 changed files with 5 additions and 5 deletions
|
|
@ -422,14 +422,14 @@ def _create_thread(
|
|||
path = f"/channels/{channel_id}/messages/{message_id}/threads"
|
||||
body: Dict[str, Any] = {
|
||||
"name": name,
|
||||
"auto_archive_duration": auto_archive_duration,
|
||||
"auto_archive_duration": int(auto_archive_duration),
|
||||
}
|
||||
else:
|
||||
# Create a standalone thread
|
||||
path = f"/channels/{channel_id}/threads"
|
||||
body = {
|
||||
"name": name,
|
||||
"auto_archive_duration": auto_archive_duration,
|
||||
"auto_archive_duration": int(auto_archive_duration),
|
||||
"type": 11, # PUBLIC_THREAD
|
||||
}
|
||||
thread = _discord_request("POST", path, token, body=body)
|
||||
|
|
@ -669,9 +669,9 @@ def _build_schema(
|
|||
"description": "Snowflake ID for forward pagination (fetch_messages).",
|
||||
},
|
||||
"auto_archive_duration": {
|
||||
"type": "integer",
|
||||
"enum": [60, 1440, 4320, 10080],
|
||||
"description": "Thread archive duration in minutes (create_thread, default 1440).",
|
||||
"type": "string",
|
||||
"description": "Duration before the channel is automatically archived (minutes).",
|
||||
"enum": ["60", "1440", "4320", "10080"],
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue