Skip to content

feat: support for gpt-5.4 family and gemini-3.1#5

Closed
AlexMetsai wants to merge 4 commits into
mainfrom
feat/enable-gemini-3.1-pro
Closed

feat: support for gpt-5.4 family and gemini-3.1#5
AlexMetsai wants to merge 4 commits into
mainfrom
feat/enable-gemini-3.1-pro

Conversation

@AlexMetsai

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

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 codebase to use the renamed Google Vertex AI model identifier gemini-3.1-pro-preview in place of gemini-3-pro-preview, and adds a DB migration to rename existing rate-card entries accordingly.

Changes:

  • Replace gemini-3-pro-preview references with gemini-3.1-pro-preview across backend, frontend, and tests.
  • Update orchestrator graph/model wiring to treat Gemini 3.1 Pro like the prior Gemini Pro variant.
  • Add a SQL migration to rename the stored rate card model name/pattern for Gemini Pro.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/orchestrator-agent/tests/test_thinking_level.py Updates Gemini model name used in thinking-level unit tests.
packages/orchestrator-agent/tests/integration/conftest.py Updates integration-test model lists/mappings for Vertex AI Gemini Pro.
packages/orchestrator-agent/app/core/graph_factory.py Updates Gemini model-type checks used for response formatting and built-in tool wiring.
packages/orchestrator-agent/.env.template Updates documented alternative model name for file analysis.
packages/console-frontend/src/config/models.ts Updates fallback model option value/label and thinking-level fallback condition.
packages/console-backend/tests/test_sub_agent_thinking_normalization.py Updates Gemini model names in thinking-normalization tests.
packages/console-backend/sqlmigrations/ddl/039_rename_gemini_pro_model.sql Adds migration to rename stored Gemini Pro rate-card model name and regex pattern.
packages/console-backend/playground_backend/services/sub_agent_service.py Updates the set of models considered to support “thinking”.
packages/console-backend/playground_backend/models/sub_agent.py Updates the allowed model-name literal list to include Gemini 3.1 Pro.
packages/agent-common/agent_common/models/base.py Updates shared ModelType literal list to include Gemini 3.1 Pro.
packages/agent-common/agent_common/core/model_factory.py Updates model metadata and Gemini provider config keys to Gemini 3.1 Pro.

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

Comment thread packages/console-frontend/src/config/models.ts Outdated
"label": "Gemini 3.1 Pro Preview",
"provider": "Google Vertex AI",
"supports_thinking": True,
"thinking_levels": ["low", "high"],

Copilot AI Apr 21, 2026

Copy link

Choose a reason for hiding this comment

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

get_available_models_metadata() will advertise Gemini 3.1 Pro as only supporting thinking levels [low, high], but elsewhere (e.g., orchestrator unit tests) Gemini is exercised with ThinkingLevel.medium. Please align the advertised thinking_levels with actual supported/desired levels (either expand this list or adjust callers/tests/UI expectations) so API consumers don’t get inconsistent capability info.

Suggested change
"thinking_levels": ["low", "high"],
"thinking_levels": ["low", "medium", "high"],

Copilot uses AI. Check for mistakes.
Comment thread packages/orchestrator-agent/tests/test_thinking_level.py
Comment on lines +5 to +9
UPDATE rate_cards
SET model_name = 'gemini-3.1-pro-preview',
model_name_pattern = '^gemini-3\.1-pro-preview.*$'
WHERE provider = 'google_genai'
AND model_name = 'gemini-3-pro-preview';

Copilot AI Apr 21, 2026

Copy link

Choose a reason for hiding this comment

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

This migration can fail due to the (provider, model_name) unique constraint if a google_genai/gemini-3.1-pro-preview rate card already exists (e.g., manually seeded in an environment). Consider making it idempotent/safe by handling the conflict explicitly (e.g., updating only when the target name doesn’t exist, or merging/deleting the target row before the rename).

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Valid point in general, but no non-dev is using this yet. "We ain't gonna need it".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.


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

Comment thread packages/console-frontend/src/config/models.ts
"claude-sonnet-4.5": [ThinkingLevel.minimal, ThinkingLevel.low, ThinkingLevel.medium],
"claude-sonnet-4.6": [ThinkingLevel.minimal, ThinkingLevel.low, ThinkingLevel.medium],
"gemini-3-pro-preview": [ThinkingLevel.low],
"gemini-3.1-pro-preview": [ThinkingLevel.low],

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

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

THINKING_MODELS is used to parametrize integration streaming tests, but Gemini 3.1 Pro is currently restricted to [ThinkingLevel.low] here while the shared model metadata/test suite elsewhere indicates Gemini 3.1 Pro supports additional thinking levels (e.g., medium/high). Please align this list with the actual supported Gemini thinking levels so the integration matrix (and expectations) stays consistent.

Suggested change
"gemini-3.1-pro-preview": [ThinkingLevel.low],
"gemini-3.1-pro-preview": [ThinkingLevel.low, ThinkingLevel.medium, ThinkingLevel.high],

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'd keep the cheapest for the tests.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.


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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.


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

@AlexMetsai AlexMetsai changed the title feat: enable gemini 3.1 pro feat: support for gpt-5.4 family and gemini-3.1 Apr 22, 2026
@AlexMetsai

Copy link
Copy Markdown
Contributor Author

closing in favour of #22, as this branch has become quite stale

@AlexMetsai AlexMetsai closed this May 19, 2026
@AlexMetsai AlexMetsai deleted the feat/enable-gemini-3.1-pro branch May 19, 2026 14:10
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.

2 participants