guidance icon indicating copy to clipboard operation
guidance copied to clipboard

error while using guidance with azure openai

Open jhkim-tf opened this issue 2 years ago • 2 comments

The bug A clear and concise description of what the bug is.

ValueError: Fail to create device flow. Err: { "error": "invalid_request", "error_codes": [ 900144 ], .... }

To Reproduce Give a full working code snippet that can be pasted into a notebook cell or python file. Make sure to include the LLM load step so we know which model you are using.

# put your code snippet here

System info (please complete the following information):

  • OS (e.g. Ubuntu, Windows 11, Mac OS, etc.):
  • Guidance Version (guidance.__version__):

jhkim-tf avatar May 19 '23 09:05 jhkim-tf

This is caused because AzureOpenAI uses msal inside. If you are unfamiliar with Azure and simplily wanna use Azure OpenAI Servise like official openai python api, try my temporary solution #87

somisawa avatar May 22 '23 08:05 somisawa

@jhkim-tf

somisawa avatar May 22 '23 08:05 somisawa

I think this is fixed now. If not, please reopen and give us a snippet to reproduce.

marcotcr avatar Jun 06 '23 16:06 marcotcr