error while using guidance with azure openai
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__):
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
@jhkim-tf
I think this is fixed now. If not, please reopen and give us a snippet to reproduce.