Why v0 not always give run code?

Hey I am making an app with Supabase as backend sometimes if any SQL command is required to run on Supabase v0 gives run code button there but sometimes it generates a sql command file in the project. How to get rid of this? Is there any specific keywords to mention in prompt so v0 will give run code snippet always

Hey, Rockson!

Could you share any screenshots or chat links for us to take a look at?


I asked to configure supabase but instead for making run sql code button it generate file

If you were developing this locally, then SQL files like that would be the right approach and unfortunately LLMs are trained on a lot of code that looks like that. We’ll work on improving our model to make this work in v0 more reliably

In the meantime, if you ask it to wrap the SQL in ```sql type="inline-sql", then that should trigger v0 to give you the Run Code button. This is a bit of an implementation detail and may not work forever, but will hopefully unblock you