Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error plz #1

Open
chul-hyun-kim opened this issue May 11, 2023 · 9 comments
Open

error plz #1

chul-hyun-kim opened this issue May 11, 2023 · 9 comments

Comments

@chul-hyun-kim
Copy link


⚠ Apologies, the Open AI API is not available right now. It can be related to insufficient funds.

The chatCompletion operation does not work with the specified model, text-davinci-003. Please choose different model and try again. You can learn more about which models can be used with each operation here: https://go.microsoft.com/fwlink/?linkid=2197993.

Can you change model? text-davinci-003 -> gpt-35-turbo?
thx

@Zerg00s
Copy link
Owner

Zerg00s commented May 11, 2023

Hi @chul-hyun-kim ,

Based on the error, are you using the Azure-based Open AI? If that's the case, make sure you have:

  • Azure Open AI resource provisioned
  • "gpt-35-turbo" model deployed

image

Once your model is deployed - you need to get its URL:

  • Open https://oai.azure.com/portal/playground

  • Click "Completions > Pick your deployed model

  • Click "View code"
    image

  • Copy the deployment URL. You will need it later.
    image

  • Open your Power Automate flow, and in the HTTP Action, paste the copied model URL to the URI field:

image

  • That's it.

I hope that helps!

@chul-hyun-kim
Copy link
Author

I've tried this..

but as below

[text-davinci-003 ]
image

[gpt-35-turbo ]
image
image

@Zerg00s
Copy link
Owner

Zerg00s commented May 12, 2023

hi @chul-hyun-kim, It looks like you are using the "text-davinci-003" model instead of "gpt-35-turbo". Can you share a screenshot from your Azure where I can see what model type you are using:

image

@chul-hyun-kim
Copy link
Author

@Zerg00s
Thank you for your interest.

image
image

@Zerg00s
Copy link
Owner

Zerg00s commented May 12, 2023

I think the issue might be related to the API version. I am using the older version and you are using a newr, preview version.

I will only have time next week to have a look at it, unfortunately.

@Zerg00s
Copy link
Owner

Zerg00s commented May 12, 2023

@chul-hyun-kim,

Can you take one more screenshot for me, please?

image

I was trying to see the new version of the API you are using, but I don't have this model yet. And I don't want to re-create it because I have existing code running that is using the legacy API. This is why I need your help with a screenshot.

@chul-hyun-kim
Copy link
Author

It looks the same to me.
i think,, Unsuppoted data type error,,
Logic for handling data types is different. Between models gpt-35-turbo text-davinci-003

image

@khanhlnq
Copy link

I edited the JSON schema and parsing, the flow now run successfully. You can try my exported flow.
GetanswerfromAzureOpenAI(editted)_20230515030711.zip

@chul-hyun-kim
Copy link
Author

I edited the JSON schema and parsing, the flow now run successfully. You can try my exported flow. GetanswerfromAzureOpenAI(editted)_20230515030711.zip


It run successfully ! thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants