So I have created a custom GPT on the Open AI Playground and would like to use this in my Node JS app. Now this is my code but not sure what value do i feed into the code_interpreter for it to work? The file_ids? I tried that and it said not found. This is my createThread function -
async function customBotCreateThread(userMessage, vectorStoreId) {
console.log(userMessage,vectorStoreId, 'CREATOR')
try {
const thread = await openai.beta.threads.create({
messages: [{ role: "user", content: userMessage }],
tool_resources: {
file_search: {
vector_store_ids: vectorStoreId,
},
code_interpreter
},
});
return thread;
} catch (error) {
console.error("Error creating thread:", error);
}
}
I also have an issue with some vector store Ids not being found. Does the API Key matter based on the project it is in? Thank you!