Azure-Samples / ai-rag-chat-evaluator

Tools for evaluation of RAG Chat Apps using Azure AI Evaluate SDK and OpenAI
MIT License
226 stars 78 forks source link

Tenant provided does not match error code : 400 #94

Open milind-devlok opened 5 months ago

milind-devlok commented 5 months ago

Getting this error while running with azure open ai env setting. openai.BadRequestError: Error code: 400 - {'error': {'code': 'Tenant provided in token does not match resource token', 'message': 'Token tenant xxxxxxxxxxxxxxxx does not match resource tenant.'}}

pamelafox commented 5 months ago

It sounds like something funky with your azure login status. Can you try "azd auth login" again? You could also try "azd auth login --tenant-id TENANT-ID" if you think its not logging you into the target tenant for your OpenAI deployment.

juacasco commented 2 months ago

I've got the same error, and I could solve it by running az login -- maybe the azd at some point uses the az independently which seems to have an independent scope and I had another azure account. Hope this helps. ;)

PD: Pamela and team, you're awesome, total respect. Thank you :)