Skip to content

Conversation

@AHGIJMKLKKZNPJKQR
Copy link
Member

Closes FCE-2434

Using Vertex AI didn't fix the bugs we encountered with standalone API. However changing the apiVersion to v1alpha (instead of the default v1beta) improved a few things

Also I probably completely broke elevenlabs but I don't care right now

@AHGIJMKLKKZNPJKQR AHGIJMKLKKZNPJKQR self-assigned this Dec 4, 2025
Copilot AI review requested due to automatic review settings December 4, 2025 13:04
@linear
Copy link

linear bot commented Dec 4, 2025

Copy link
Contributor

Copilot AI left a comment

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 Gemini AI integration by switching to the v1alpha API version and refactoring the agent session management to improve reliability.

Key changes:

  • Switched Gemini model and API version to address stability issues
  • Refactored agent session management from boolean state tracking to time-based audio tracking
  • Updated game prompts to be more structured and clearer

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
deep-sea-stories/packages/backend/src/prompts/instructions-template.md Restructured game instructions with clearer sections and explicit behavioral rules
deep-sea-stories/packages/backend/src/prompts/first-message-template.md Simplified welcome message to match updated instructions template
deep-sea-stories/packages/backend/src/game/room.ts Updated GeminiApi initialization to support Vertex AI configuration and v1alpha API version
deep-sea-stories/packages/backend/src/config.ts Added optional Vertex AI configuration fields and updated default Gemini model
deep-sea-stories/packages/backend/src/agent/gemini/session.ts Replaced boolean talking state with time-based audio tracking and improved tool response handling
deep-sea-stories/packages/backend/src/agent/gemini/api.ts Changed constructor to accept GoogleGenAIOptions for flexible configuration

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

@AHGIJMKLKKZNPJKQR AHGIJMKLKKZNPJKQR merged commit 19b1416 into main Dec 4, 2025
1 check passed
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