ai-agents-for-beginners icon indicating copy to clipboard operation
ai-agents-for-beginners copied to clipboard

The `models` permission is required to access this endpoint

Open wdrone opened this issue 10 months ago • 4 comments

When I run the notebook in step 01, specifically the last cell i get the following error.

ServiceResponseException: ("<class 'semantic_kernel.connectors.ai.open_ai.services.open_ai_chat_completion.OpenAIChatCompletion'> service failed to complete the prompt", AuthenticationError("Error code: 401 - {'error': {'code': 'unauthorized', 'message': 'The models permission is required to access this endpoint', 'details': 'The models permission is required to access this endpoint'}}"))

wdrone avatar Jun 09 '25 16:06 wdrone

👋 Thanks for contributing @wdrone! We will review the issue and get back to you soon.

github-actions[bot] avatar Jun 09 '25 16:06 github-actions[bot]

This was because I didn't explicitly give the fined grained github pat read only access to models. Recommend updating the github pat creation instructions.

wdrone avatar Jun 09 '25 16:06 wdrone

@indcoder re https://github.com/microsoft/ai-agents-for-beginners/pull/134 some additional guidance

leestott avatar Jun 11 '25 06:06 leestott

@leestott Thank you for your patience. Please review the latest changes. There were improvements in GitHub.com UI for PAT, I have incorporated that in content including images.

indcoder avatar Jun 11 '25 09:06 indcoder

I have merged the changes., Thanks for the help @indcoder

koreyspace avatar Jul 23 '25 08:07 koreyspace