Skip to content

added gemini 3.1 models to gemini_client.py#1309

Open
jawherkh wants to merge 1 commit intogetzep:mainfrom
jawherkh:add-gemini-3.1-models
Open

added gemini 3.1 models to gemini_client.py#1309
jawherkh wants to merge 1 commit intogetzep:mainfrom
jawherkh:add-gemini-3.1-models

Conversation

@jawherkh
Copy link

@jawherkh jawherkh commented Mar 8, 2026

Summary

This PR adds Gemini 3.1 preview model support to the Gemini client by registering the new model names in the max-token map. It also includes a small pytest discovery fix so make test only targets the root test suite and automatically treats graph_driver-based tests as integration tests, preventing local Neo4j credential state from breaking the non-integration test target. The remaining code changes are formatting-only cleanups in a few files.

Type of Change

  • Bug fix
  • New feature
  • Performance improvement
  • Documentation/Tests

Objective

Add support for newer Gemini 3.1 preview models so the client can apply the correct output token limits when those models are configured. While validating the change, the root test target exposed pytest collection issues in the multi-project repo layout, so this PR also tightens root test discovery and integration test classification to keep make test aligned with its intended non-integration scope.

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • All existing tests pass

Tested with:
make test

Result:
263 passed, 1 skipped, 51 deselected

Breaking Changes

  • This PR contains breaking changes

If this is a breaking change, describe:

  • What functionality is affected
  • Migration path for existing users

Checklist

  • Code follows project style guidelines (make lint passes)
  • Self-review completed
  • Documentation updated where necessary
  • No secrets or sensitive information committed

@danielchalef
Copy link
Member

danielchalef commented Mar 8, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 174949b9ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +19 to +23
if 'graph_driver' not in item.fixturenames:
continue
if item.get_closest_marker('integration') is not None:
continue
item.add_marker(integration_marker)

Choose a reason for hiding this comment

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

P1 Badge Scope graph_driver auto-marking to avoid skipping CI suites

This unconditional graph_driverintegration remapping changes marker semantics for every pytest invocation, not just make test. In .github/workflows/unit_tests.yml, the database-integration-tests job runs pytest ... -m "not integration" against tests/test_graphiti_mock.py, tests/test_node_int.py, and tests/test_edge_int.py, and those tests all use the graph_driver fixture, so they are now deselected instead of executed. That silently removes most DB integration coverage from CI.

Useful? React with 👍 / 👎.

@jawherkh
Copy link
Author

jawherkh commented Mar 8, 2026

I have read the CLA Document and I hereby sign the CLA

danielchalef added a commit that referenced this pull request Mar 8, 2026
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