Replies: 9 comments 26 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.
-
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:1710
Doesn'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