Description
Confirm this is a Node library issue and not an underlying OpenAI API issue
- This is an issue with the Node library
Describe the bug
I properly create a thread and a run and then I am hardcoding my thread id and run id to test openai.beta.threads.runs.retrieve(), thus
const thread_id = 'thread_VSLQYOG6Wot7l03QzJKIet2d';
const run_id = 'run_MKBOgssbJVH6lSUH1vcBg5sH';
let runstatus = await aiclient.beta.threads.runs.retrieve(thread_id, run_id);
And I keep getting
400 Invalid 'thread_id': 'undefined'. Expected an ID that begins with 'thread'.
There are lots of other developers facing the same strange error, here: https://community.openai.com/t/badrequesterror-400-invalid-thread-id-undefined-expected-an-id-that-begins-with-thread/1281237/4
Seems like an OpenAI node SDK issue.
To Reproduce
Run something like
const thread_id = 'thread_VSLQYOG6Wot7l03QzJKIet2d';
const run_id = 'run_MKBOgssbJVH6lSUH1vcBg5sH';
let runstatus = await aiclient.beta.threads.runs.retrieve(thread_id, run_id);
Expect
400 Invalid 'thread_id': 'undefined'. Expected an ID that begins with 'thread'.
Code snippets
OS
Ubuntu
Node version
v23.11.0
Library version
^5.3.0