From f3b793f2442b5523eb848ae7d5b4dda17424a677 Mon Sep 17 00:00:00 2001 From: Daniel Chalef <131175+danielchalef@users.noreply.github.com> Date: Sun, 26 Oct 2025 17:44:36 -0700 Subject: [PATCH] fix: Update hardcoded default model to gpt-4.1 and fix config path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed hardcoded default in schema.py from gpt-4o to gpt-4.1 - Fixed default config path to look in config/config.yaml relative to mcp_server directory - This ensures the server uses gpt-4.1 as the default model everywhere 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- mcp_server/src/config/schema.py | 2 +- mcp_server/src/graphiti_mcp_server.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mcp_server/src/config/schema.py b/mcp_server/src/config/schema.py index 0c979f83..e3579041 100644 --- a/mcp_server/src/config/schema.py +++ b/mcp_server/src/config/schema.py @@ -150,7 +150,7 @@ class LLMConfig(BaseModel): """LLM configuration.""" provider: str = Field(default='openai', description='LLM provider') - model: str = Field(default='gpt-4o', description='Model name') + model: str = Field(default='gpt-4.1', description='Model name') temperature: float = Field(default=0.0, description='Temperature') max_tokens: int = Field(default=4096, description='Max tokens') providers: LLMProvidersConfig = Field(default_factory=LLMProvidersConfig) diff --git a/mcp_server/src/graphiti_mcp_server.py b/mcp_server/src/graphiti_mcp_server.py index bcd0ef33..5575c8e3 100644 --- a/mcp_server/src/graphiti_mcp_server.py +++ b/mcp_server/src/graphiti_mcp_server.py @@ -678,11 +678,13 @@ async def initialize_server() -> ServerConfig: ) # Configuration file argument + # Default to config/config.yaml relative to the mcp_server directory + default_config = Path(__file__).parent.parent / 'config' / 'config.yaml' parser.add_argument( '--config', type=Path, - default=Path('config.yaml'), - help='Path to YAML configuration file (default: config.yaml)', + default=default_config, + help='Path to YAML configuration file (default: config/config.yaml)', ) # Transport arguments