fix: Update hardcoded default model to gpt-4.1 and fix config path
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
3c6bd3d9e0
commit
f3b793f244
2 changed files with 5 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue