models
permission required
#15602
-
Hii, I used both OpenAI o4-mini and OpenAI GPT-4o, generating separate GitHub tokens to be specified under apiKey in the configuration. Now, in the Theia AI Chat, after pinning the agent as Coder and providing a prompt, I received the following error message: 401 Unauthorized: The models permission is required to access this endpoint. What’s confusing is that I followed the same exact process earlier using GPT-4o, and it worked perfectly when I first started exploring Theia AI Chat. However, suddenly, I started receiving the above error. Then I switched to using the o4-mini model with a new token, hoping it would resolve the issue. Unfortunately, the problem remains the same.
It would be helpful to know which files in the Theia AI codebase are responsible for Handling tool call responses (like createToolCallResponseContent) Understanding these would help me integrate or modify support for custom models to work properly with tool calls, just like the built-in models or the OpenAIModels Thank you in advance for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, it looks like GitHub now requires fine-grained Personal Access Tokens (PATs) to have explicit So even though your setup worked earlier (likely with a coarse-grained token or before the permission was enforced), newer tokens must include
Coarse-grained tokens (the older style) don’t require this permission and should still work. We'll update the blog post, thanks for letting us know! I hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi,
it looks like GitHub now requires fine-grained Personal Access Tokens (PATs) to have explicit
models:read
permissions in order to use their models. See announcement.So even though your setup worked earlier (likely with a coarse-grained token or before the permission was enforced), newer tokens must include
models:read
to continue working.models:read
permission when setting the scopes.apiKey
.Coarse-grained tokens (the older style) don’t require this permission and should still work.
We'll update the blog post, thanks for letting us know!
I …