Replies: 12 comments 28 replies
-
|
Hey @devhkr! The clue is in this part of the error message: You'll need to provide your own |
Beta Was this translation helpful? Give feedback.
-
|
In a nutshell, put A few catches that confused me for quite some time:
|
Beta Was this translation helpful? Give feedback.
-
Inconsistency and Issues with Environment ConfigurationI am encountering several persistent issues that significantly impact the development workflow, specifically around environment configuration and error handling. I would appreciate any help or clarification on these matters: 1. Inconsistent Naming for Environment VariablesThere's an ongoing inconsistency in how environment variables are named ( 2. Loading .env Files in a MonorepoThe logic for loading
3. Local Environment ErrorDespite the {
"error": "There was an unknown error editing the SQL snippet. Please try again."
}4. Concern About Closed Related IssuesI've noticed that previous bug reports related to these issues were closed without a clear resolution. Can someone explain the rationale behind these decisions? It would be beneficial to reopen these discussions to address and resolve the concerns effectively. |
Beta Was this translation helpful? Give feedback.
-
|
I put OPENAI_API_KEY in the .env file and it worked fine. |
Beta Was this translation helpful? Give feedback.
-
|
i add OPENAI_API_KEY=yourkey in (.env) & (docker-compose.yml) and copye .env to root folders supabase and its work now |
Beta Was this translation helpful? Give feedback.
-
1、summary-- before 2024/04/25 or before v1.24.04,add
|
Beta Was this translation helpful? Give feedback.
-
|
why do i need an openai_api_key at all? any option to turn this off? |
Beta Was this translation helpful? Give feedback.
-
|
What model should I choose in OpenAI platform to make it work at best? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
https://github.com/orgs/supabase/discussions/21621#discussioncomment-11553912 This should be way clearer in the docs, there's no indication of this :/ |
Beta Was this translation helpful? Give feedback.
-
|
I am getting I am not sure how this is possible. My API key has full access. I created new keys twice. My key is in my Any ideas? |
Beta Was this translation helpful? Give feedback.
-
|
This still doesn't work for me in a self hosted docker instance |
Beta Was this translation helpful? Give feedback.










Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using AI ASSISTANT in a local environment, the following error occurs

Looking at the logs, I see the following error

2024-02-27 22:32:52 OpenAIError: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }). 2024-02-27 22:32:52 at new OpenAI (file:///app/node_modules/openai/index.mjs:26:19) 2024-02-27 22:32:52 at /app/apps/studio/.next/server/pages/api/ai/sql/edit.js:1:1710Doesn't AI ASSISTANT work in the local environment by default? Or is there something wrong with my settings?
If the settings are wrong, I'm wondering how I can fix them. :)
Beta Was this translation helpful? Give feedback.
All reactions