Skip to content

Fix: Use stable Google API v1 instead of v1beta for Gemini#1

Open
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/code-change-5DewSX
Open

Fix: Use stable Google API v1 instead of v1beta for Gemini#1
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/code-change-5DewSX

Conversation

@railway-app
Copy link
Copy Markdown

@railway-app railway-app Bot commented May 12, 2026

Problem

Gemini model calls return 404 errors because pydantic-ai-slim[google]>=1.93.0 routes requests through the deprecated v1beta API endpoint, which no longer serves models like gemini-1.5-flash.

Solution

Replaced pydantic-ai-slim[google]>=1.93.0 with google-genai>=0.3.0 in backend/pyproject.toml. The official google-genai SDK targets the stable v1 API endpoint, resolving the 404s. pydantic-ai is retained as-is since it integrates with google-genai directly.

Changes

  • Modified backend/pyproject.toml

Generated by Railway

@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
news-foundry Ready Ready Preview, Comment May 12, 2026 9:25pm
news-foundry-nvpt Ready Ready Preview, Comment May 12, 2026 9:25pm

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.

0 participants