screenshot-to-code icon indicating copy to clipboard operation
screenshot-to-code copied to clipboard

Support Azure endpoints

Open zdjjj opened this issue 1 year ago • 12 comments

zdjjj avatar Nov 17 '23 11:11 zdjjj

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 avatar Nov 17 '23 13:11 abi

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

abi avatar Nov 17 '23 13:11 abi

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

thelazyoxymoron avatar Nov 18 '23 06:11 thelazyoxymoron

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: @.***>

zdjjj avatar Nov 18 '23 10:11 zdjjj

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

zpratikpathak avatar Nov 25 '23 18:11 zpratikpathak

Feel free to open a PR

abi avatar Nov 25 '23 19:11 abi

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

prettybot avatar Dec 13 '23 07:12 prettybot

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?

cristianorevil avatar Dec 13 '23 10:12 cristianorevil

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.

abi avatar Dec 13 '23 15:12 abi

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

cristianorevil avatar Dec 14 '23 11:12 cristianorevil

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

abi avatar Dec 14 '23 15:12 abi

Merging with #261

abi avatar May 23 '24 21:05 abi