When I create a new thread for my assistant, I specify the vector_store to use:
const threadAndRun = await client.beta.threads.createAndRun({
assistant_id: assistantId,
thread: {
messages: [
{ role: "user", content: message }
]
},
tool_resources: {
file_search: {
vector_store_ids: [vectorStoreId]
}
}
});
This works fine, however, when I want to ask a second question and create a new message on the same thread, the AI says that the file is unavailable. There does not seem to be a way to specify a vector_store_id on either a message or a run (using threads.message.create or threads.runs.create). How do I add a second message to a thread referencing the original vector_store_id?