We've been using the Retool Vectors for a while now, but yesterday they all started failing with the following message. It's clear that the Retool / OpenAI api key has changed, but our app isn't getting the new key.
vectorize failed (66.268s):Error generating embeddings Error creating embedding: 401 Incorrect API key provided: 1e7f5374************************e463. You can find your API key at https://platform.openai.com/account/api-keys.
Hey @mrgoynes! Welcome to the community. Thanks for stopping by office hours this morning, as well.
Can you quickly check and confirm that none of the AI resources - other than the Retool managed ones - at https://your_domain.retool.com/resources/retool_ai have been configured? I was able to replicate the error that you're seeing by incorrectly configuring the OpenAI resource:
I'm pretty sure adding your own OpenAI key automatically disables the Retool managed integration, meaning the error that you're seeing is with that specific configuration.
Glad to hear that it's working now! The screenshot that you shared above shows that a custom OpenAI integration is at least partially configured, which likely explains how the Retool managed version was disabled.