graphiti/graphiti_core
claude[bot] 93ab7375cd
feat: eliminate ghost variables with configurable provider defaults system
Replace hardcoded DEFAULT_MODEL and DEFAULT_SMALL_MODEL constants across all LLM clients with a centralized, configurable provider defaults system.

Key changes:
- Created provider_defaults.py with centralized configuration for all providers
- Added environment variable support for easy customization (e.g., GEMINI_DEFAULT_MODEL)
- Updated all LLM clients to use configurable defaults instead of hardcoded constants
- Made edge operations max_tokens configurable via EXTRACT_EDGES_MAX_TOKENS
- Updated cross-encoder reranker clients to use provider defaults
- Maintained full backward compatibility with existing configurations

This resolves the issue where Gemini's flash-lite model has location constraints in Vertex AI that differ from the regular flash model, and users couldn't easily override these without editing source code.

Environment variables now supported:
- {PROVIDER}_DEFAULT_MODEL
- {PROVIDER}_DEFAULT_SMALL_MODEL  
- {PROVIDER}_DEFAULT_MAX_TOKENS
- {PROVIDER}_DEFAULT_TEMPERATURE
- {PROVIDER}_EXTRACT_EDGES_MAX_TOKENS
- EXTRACT_EDGES_MAX_TOKENS (global fallback)

Fixes #681

Co-authored-by: Daniel Chalef <danielchalef@users.noreply.github.com>
2025-07-09 14:59:17 +00:00
..
cross_encoder feat: eliminate ghost variables with configurable provider defaults system 2025-07-09 14:59:17 +00:00
driver Refactor imports (#675) 2025-07-05 08:57:07 -07:00
embedder feat(gemini): simplify config for Gemini clients (#679) 2025-07-05 21:14:55 -07:00
llm_client feat: eliminate ghost variables with configurable provider defaults system 2025-07-09 14:59:17 +00:00
models Node name bug fix (#622) 2025-06-24 17:13:27 -04:00
prompts updates 2025-06-26 15:38:05 -04:00
search Fix: Add missing name_embedding field to community search queries (#664) 2025-07-02 11:45:25 -04:00
telemetry feat: add telemetry with PostHog and update Docker configurations (#633) 2025-06-27 12:23:30 -07:00
utils feat: eliminate ghost variables with configurable provider defaults system 2025-07-09 14:59:17 +00:00
__init__.py chore: Fix packaging (#38) 2024-08-25 10:07:50 -07:00
edges.py update driver (#583) 2025-06-13 14:12:09 -04:00
errors.py Add group ID validation and error handling (#618) 2025-06-24 09:33:54 -07:00
graph_queries.py update driver (#583) 2025-06-13 14:12:09 -04:00
graphiti.py reformat (#655) 2025-07-01 12:26:15 -04:00
graphiti_types.py Add support for falkordb (#575) 2025-06-13 12:06:57 -04:00
helpers.py migrate to pyright (#646) 2025-06-30 12:04:21 -07:00
nodes.py reformat (#655) 2025-07-01 12:26:15 -04:00
py.typed Add py.typed file (#105) 2024-09-11 08:44:06 -04:00