Repository navigation
Feat: (UI) running model add Try to API and add useMenuAuth hook - #5098
Conversation
maoyuehui
commented
Jun 29, 2026
- running model add Try to API
- add useMenuAuth hook
- part style fix
…-new-ui-version-7
There was a problem hiding this comment.
Code Review
This pull request introduces a 'Try To API' feature that allows users to view and copy API code examples in multiple languages (Python, TypeScript, Java, Go, and Shell) for various model capabilities. It also refactors permission checks across the sidebar and API key management pages using a new centralized useMenuAuth hook. The review feedback highlights several key improvements: correcting a permission mapping mismatch in API key management, resolving potential compilation and runtime errors in the generated Go and TypeScript code examples, ensuring consistency in the generated curl commands by including optional fields, and fixing a TypeScript typing issue in the model detail transformation utility.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
qinxuye
left a comment
There was a problem hiding this comment.
Review comments for PR 5098.