abi / screenshot-to-code

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Home Page:https://screenshottocode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no open ai key why?

shangyiyanglei opened this issue · comments

commented
捕获
commented

Uploading 捕获1.PNG…

Hi, where did you set the open ai key? And can you share your backend logs?

commented

image

commented

Incoming websocket connection...
INFO: connection open
Received params
Generating vue_tailwind code for uploaded image using Llm.GPT_4O_2024_05_13 model...
OpenAI API key not found
INFO: connection closed

commented

thanks you

Can you remove the quotes around your env cars? Should work then.

Or set the OpenAI key with the front end settings button.

commented

Based on your suggestion, I was able to make the request, but an error message popped up saying that my OpenAI key does not have permission. I read the documentation, and it says I need to purchase an OpenAI key for $5. Thank you very much for your enthusiastic help. I really appreciate it.

Great!