feat: migrate @google/generative-ai → @google/genai SDK + Deep Research config#624
Merged
codercatdev merged 1 commit intodevfrom Mar 5, 2026
Merged
feat: migrate @google/generative-ai → @google/genai SDK + Deep Research config#624codercatdev merged 1 commit intodevfrom
codercatdev merged 1 commit intodevfrom
Conversation
…ch config Task 1 — SDK Migration: - Replace @google/generative-ai with @google/genai in package.json - lib/gemini.ts: lazy-init GoogleGenAI client, ai.models.generateContent() - lib/sponsor/gemini-intent.ts: migrate to new SDK API surface - lib/sponsor/gemini-outreach.ts: migrate to new SDK API surface - response.text is now a property (not method) in new SDK Task 2 — Deep Research Config: - pipelineConfig.ts: add enableDeepResearch, deepResearchAgent, deepResearchPromptTemplate, infographicModel fields - lib/types/config.ts: add matching PipelineConfig interface fields
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 2 Sprint 1: Migrate from deprecated
@google/generative-aiSDK to@google/genai+ add Deep Research config fields to pipelineConfig singleton.Spec: Replace NotebookLM with Gemini Deep Research API
Tasks: Sprint 1 Tasks 1 + 2
Task 1 — SDK Migration (4 files)
lib/gemini.tsGoogleGenerativeAI→GoogleGenAIfrom@google/genaigetAI()) — prevents crash at import time ifGEMINI_API_KEYis missinggenAI.getGenerativeModel()+model.generateContent()→ai.models.generateContent({ model, contents, config })systemInstructionmoved intoconfigobjectresult.response.text()→response.text(property in new SDK, not method)lib/sponsor/gemini-intent.tsnew GoogleGenerativeAI(apiKey)→new GoogleGenAI({ apiKey })model.generateContent(prompt)→ai.models.generateContent({ model, contents })lib/sponsor/gemini-outreach.tspackage.json"@google/generative-ai": "^0.24.1""@google/genai": "^1.0.0"Task 2 — Deep Research Config (2 files)
sanity/schemas/singletons/pipelineConfig.ts4 new fields added after
enableNotebookLmResearch:enableDeepResearch— boolean (default false)deepResearchAgent— string (default"deep-research-pro-preview-12-2025")deepResearchPromptTemplate— text with{topic}placeholderinfographicModel— string (default"imagen-4-fast")lib/types/config.tsMatching fields added to
PipelineConfiginterface.Key SDK Changes for Downstream Agents
This unblocks Sprint 2: @research (Task 3: Gemini Deep Research client) and @videopipe (Task 4: infographic generation).