Skip to content

feat: export ChaiAiPanel, google/gemini-3-flash as default model, and remove search functionality - #788

Merged
surajair merged 2 commits into
devfrom
ai-models
Mar 2, 2026
Merged

feat: export ChaiAiPanel, google/gemini-3-flash as default model, and remove search functionality#788
surajair merged 2 commits into
devfrom
ai-models

Conversation

@amitdhiman5086

Copy link
Copy Markdown
Contributor
Screenshot from 2026-03-02 13-21-49

@vercel

vercel Bot commented Mar 2, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

You don't have permission to create a Preview Deployment for this Vercel project: sdk.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Mar 2, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
sdk-nextjs cf5bd2e Mar 02 2026, 11:00 AM

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the AI panel’s public surface and defaults by exporting the AI panel component, switching the default model to Gemini 3 Flash, and simplifying the model picker UI by removing model search.

Changes:

  • Set google/gemini-3-flash as the default AI model (with fallback to the first configured model).
  • Remove search/filtering UI from the model selector dropdown and adjust its layout.
  • Export ChaiAiPanel from the package entrypoint (src/pages/index.ts).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/pages/panels/ai-panel/models.ts Updates the default model selection logic to prefer google/gemini-3-flash.
src/pages/panels/ai-panel/model-selector-dropdown.tsx Removes the search input and filtering; presents a grouped list of models with a new header/layout.
src/pages/index.ts Exposes the AI panel as a public export (ChaiAiPanel).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 58 to 60
<ModelSelectorContent className="w-96 p-0">
<ModelSelectorInput placeholder="Search models..." value={search} onValueChange={setSearch} />

<h3 className="mt-2 px-2 py-2 font-semibold">Models</h3>
<ModelSelectorList>

Copilot AI Mar 2, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the search input means the dialog no longer has an obvious initial focus target; Radix Dialog will likely focus the close button, which makes keyboard navigation/selection of models awkward. Consider explicitly moving focus to the Command root/list (e.g., via ModelSelectorContent onOpenAutoFocus or a ref + focus() when opening) so arrow keys work immediately without a search field.

Copilot uses AI. Check for mistakes.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Mar 2, 2026

Copy link
Copy Markdown

Deploying sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: cf5bd2e
Status: ✅  Deploy successful!
Preview URL: https://8094b4cc.sdk-8n4.pages.dev
Branch Preview URL: https://ai-models.sdk-8n4.pages.dev

View logs

@surajair
surajair merged commit b1b5aea into dev Mar 2, 2026
1 of 3 checks passed
@surajair
surajair deleted the ai-models branch March 2, 2026 11:11
surajair added a commit that referenced this pull request Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants