Gregor Martynus
Gregor Martynus
I see the error now, after setting `toolChoice: "required"` 👍🏼
I'll let @babblebey take it from here 👍🏼
I was able to replicate the problem @ssg-chris for providing the details! Changes go here: https://github.com/vercel/ai/blob/c98373afd40d553f8eeda4c8d3773064ad6b01e5/examples/next-openai/app/api/chat-tool-approval-dynamic/route.ts Example to replicate is http://localhost:3000/test-tool-approval-dynamic (ask for weather at a location) I can try...
> I ran into the issue using `gpt-5-mini` as well @shanktt I was not replicate the problem when using `openai('gpt-5-mini')` in the same example.
Could you have a look at @kartikayy007's pull request and see if that resolves your problem? - https://github.com/vercel/ai/pull/10203
Your code does not create a `user-to-server` token. What exactly is your use case? You user-to-server token can only be created using the [web flow](https://github.com/octokit/auth-app.js#user-authentication-web-flow) or the [device flow](https://github.com/octokit/auth-app.js#user-authentication-device-flow). The...
> how to generate a `user-to-server` token you cannot generate a `user-to-server` token, it would mean to authenticate as a user through a GitHub App. User involvement is required for...
yeah that should work. Note that user-to-server token expiration is a setting on the github app ("Optional features" tab in app settings)
can someone reproduce a minimal reproducible example? It will help us prioritize working on this issue
In general, once we start reviewing, please don't force push, it makes it hard to track what changes were added since the last review. Don't mind a messy commit history...