abi / screenshot-to-code

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

Support Azure endpoints #10

Open zdjjj opened 10 months ago

abi commented 10 months ago

I don't have access to the Azure API so I have no way to test it personally. But feel free to submit a PR.

Going to support https://openrouter.ai in the future

abi commented 10 months ago

I actually don't think the Azure has the vision model yet.

thelazyoxymoron commented 10 months ago

Looks like they're bringing this to Azure soon: https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/gpt-4-turbo-with-vision-on-azure-openai-service/ba-p/3979933

zdjjj commented 10 months ago

i can support u a azure key. can u support?

Yoh

---Original--- From: "Abi @.> Date: Fri, Nov 17, 2023 21:50 PM To: @.>; Cc: @.**@.>; Subject: Re: [abi/screenshot-to-code] can u support azure api (Issue #10)

I don't have access to the Azure API so I have no way to test it personally. But feel free to submit a PR.

Going to support https://openrouter.ai in the future

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

zpratikpathak commented 10 months ago

Azure has GPT4 access but only in this region

I'm already testing screenshot-to-code with AzureOpenAIAPI, needed small help to finish it

abi commented 10 months ago

Feel free to open a PR

prettybot commented 9 months ago

Try this branch in my forked repo. Close this switch as I haven't integrated the Azure DALLE model yet! image

https://github.com/prettybot/screenshot-to-code/tree/chris-azure-version

commit https://github.com/prettybot/screenshot-to-code/commit/bd2c19dc3bc983b73ba3dcb4d5ee37e3cba96ab3

cristianorevil commented 9 months ago

Azure has GPT4 access but only in this region

  • Sweden Central
  • Canada East
  • Switzerland North

I'm already testing screenshot-to-code with AzureOpenAIAPI, needed small help to finish it

How can i help you?

abi commented 9 months ago

Would be good to have a clean PR that allows for switching between OpenAI and Azure. I have Azure access now so can test it.

cristianorevil commented 9 months ago

Would be good to have a clean PR that allows for switching between OpenAI and Azure. I have Azure access now so can test it.

Here the PR: https://github.com/abi/screenshot-to-code/pull/186

abi commented 9 months ago

@cristianorevil amazing! Will merge it in the next couple of days.

abi commented 4 months ago

Merging with #261