abi / screenshot-to-code

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
https://screenshottocode.com
MIT License
61.55k stars 7.52k forks source link

I used a third-party API and changed the base URL,but there is nothing #420

Open 2265393080 opened 3 weeks ago

2265393080 commented 3 weeks ago

QQ截图20241029171016

zachary-cao commented 3 weeks ago

Can using a direct API connection solve the issue?

abi commented 3 weeks ago

Yes, direct API connection is better.

@2265393080 It's a little strange that you are getting new logs at all on the backend besides the connection open connection closed. Are you seeing notifs on the front-end?

kowyo commented 3 weeks ago

Hi @abi I have the same issue here. I am using custom url. I only set OpenAI key and URL in .env. But the models were set to "Models used for generation: ['anthropic', 'openai']" somehow.

image

image

Thank you in advance.

abi commented 3 weeks ago

Is option 2 working for you? I would make sure to clear any backend/.env of ANTHROPIC_API_KEY and make sure the front-end popup is empty as well. It should only use the Claude models if the Anthropic key is set.

kowyo commented 3 weeks ago

Hi, I should have created a different issue yesterday as this report a different error. However, thank you for your patient reply. I would let you know if there are any updates for my issue.