mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
🧵 fix: Assistants API Thread ID Handling (#4912)
This commit is contained in:
parent
cd1184a302
commit
1c05251826
2 changed files with 4 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ async function initThread({ openai, body, thread_id: _thread_id }) {
|
|||
thread = await openai.beta.threads.create(body);
|
||||
}
|
||||
|
||||
const thread_id = _thread_id ?? thread.id;
|
||||
const thread_id = _thread_id || thread.id;
|
||||
return { messages, thread_id, ...thread };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue