Hi everyone,
I am building a chatbot for my website and have created an assistant in OpenAI. I have the assistant_id
and the correct API keys, and I’m using Firebase as the backend, where I deploy my functions and host the website.
However, I am encountering issues while configuring the assistant_id
with the API. I have already set the credentials and the assistant_id
as environment variables in Firebase using firebase functions:config:set
. But when I try to make a request to create a thread in OpenAI, I receive the following error in Google Cloud logs:
What I’ve already tried:
- I verified that both the API keys and
assistant_id
are correct, and I set them as environment variables in Firebase withfirebase functions:config:set
. - Redeployed the functions in Firebase.
- Checked the OpenAI documentation, but I can’t seem to resolve this specific error.
Is there something I might be missing or a step I’m not following to get the API to recognize the assistant_id
? Any advice or guidance would be greatly appreciated.
Thanks in advance!
Additional tips:
- Provide enough context so people can understand your problem without making assumptions.
- Include relevant code snippets to show exactly where the issue might be, but avoid overwhelming with too much code.
- Explain what steps you have already taken so others know you have made efforts to solve it.