Azure-Samples / Azure-Samples/ai-rag-chat-evaluator
Tenant provided does not match error code : 400
Open
- Dominant language
- Python
- Stars
- 335
- Forks
- 113
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 1
Description
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.'}}
Contributor guide
Research direction
Start by reproducing the 400 error using the Azure OpenAI environment settings described in the report. Compare the tenant in the token with the resource tenant and trace where the request configuration is assembled. Done means the evaluator can make the Azure OpenAI request without the tenant-mismatch error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- ai, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100