graphiti/tests
Daniel Chalef 4481702c9f
feat: enhance GeminiClient with max tokens management (#712)
* feat: enhance GeminiClient with max tokens management

- Introduced a mapping for maximum output tokens for various Gemini models.
- Added methods to resolve max tokens based on precedence rules, allowing for more flexible token management.
- Updated tests to verify max tokens behavior, ensuring explicit parameters take precedence and fallback mechanisms work correctly.

This change improves the handling of token limits for different models, enhancing the client’s configurability and usability.

* refactor: streamline max tokens retrieval in GeminiClient

- Removed the fallback to DEFAULT_MAX_TOKENS in favor of directly using model-specific maximum tokens.
- Simplified the logic for determining max tokens, enhancing code clarity and maintainability.

This change improves the efficiency of token management within the GeminiClient.
2025-07-13 14:37:55 -07:00
..
cross_encoder Gemini client improvements; Gemini reranker (#645) 2025-06-30 12:55:17 -07:00
driver [REFACTOR][FIX] Move away from DEFAULT_DATABASE environment variable in favour of driver-config support (dc) (#699) 2025-07-10 17:25:39 -04:00
embedder feat(gemini): embedding batch size & lite default (#680) 2025-07-13 10:20:22 -07:00
evals add_episode() refactor (#421) 2025-04-30 12:08:52 -04:00
llm_client feat: enhance GeminiClient with max tokens management (#712) 2025-07-13 14:37:55 -07:00
utils Node dedupe efficiency (#490) 2025-05-15 13:56:33 -04:00
helpers_test.py FalkorDB Integration: Bug Fixes and Unit Tests (#607) 2025-06-30 11:01:44 -04:00
test_entity_exclusion_int.py migrate to pyright (#646) 2025-06-30 12:04:21 -07:00
test_graphiti_falkordb_int.py reformat (#655) 2025-07-01 12:26:15 -04:00
test_graphiti_int.py reformat (#655) 2025-07-01 12:26:15 -04:00
test_node_falkordb_int.py reformat (#655) 2025-07-01 12:26:15 -04:00
test_node_int.py Node episodes list (#381) 2025-04-20 23:20:19 -04:00