Skip to content

Upgrading firebase 12 to 13

Breaking12.19.0 → 13.1.0Breaking3Deprecated1New3Changed11Fixed5Other3

BreakingUpgrade verdict

3 breaking changes.

  • The old Vertex AI backend option is gone; use AgentPlatformBackend instead, noting its default location is global rather than us-central1.
  • Calls to the template model methods now pass a single request object instead of separate arguments.
  • Message parts now carry an explicit type field, and a new UnknownPart type covers raw or user-provided inputs.
  • These generation settings are unsupported in Gemini 3.x and later models, so they are being phased out.
4 items need code or config changes
Breaking3
Removes deprecated VertexAIBackend and BackendType.VERTEX_AI, updates the default hybrid-in-cloud model to gemini-3.5-flash-lite.
VertexAIBackendBackendType.VERTEX_AIAgentPlatformBackendBackendType.AGENT_PLATFORMgetAIgemini-3.5-flash-lite
Refactors TemplateGenerativeModel.generateContent and generateContentStream to take a unified TemplateRequest object as the first parameter.
TemplateGenerativeModel.generateContentTemplateGenerativeModel.generateContentStreamTemplateRequestStartTemplateChatParamstemplateIdtemplateVariablestoolConfig
Refactors Part into a discriminated union with explicit type properties and introduces UnknownPart for raw wire and user inputs.
PartUnknownParttype
Deprecated1
Deprecates candidateCount, temperature, topP, topK, presencePenalty and frequencyPenalty in GenerationConfig and LiveGenerationConfig.
candidateCounttemperaturetopPtopKpresencePenaltyfrequencyPenaltyGenerationConfigLiveGenerationConfig