fix: update section name and correct path for MCP server configuration

This commit is contained in:
2025-03-26 06:12:40 +00:00
parent ddc0151272
commit ccd0a1e45b
2 changed files with 4 additions and 4 deletions

View File

@@ -3,5 +3,5 @@ api_key = YOUR_API_KEY
base_url = CUSTOM_BASE_URL base_url = CUSTOM_BASE_URL
model = YOUR_MODEL_ID model = YOUR_MODEL_ID
[dolphin-mcp] [mcp]
servers_json = mcp_config.json servers_json = config/mcp_config.json

View File

@@ -25,8 +25,8 @@ class OpenAIClient:
# Initialize MCP manager if configured # Initialize MCP manager if configured
self.mcp_manager = None self.mcp_manager = None
if self.config.has_section("dolphin-mcp"): if self.config.has_section("mcp"):
mcp_config_path = self.config["dolphin-mcp"].get("servers_json", "config/mcp_config.json") mcp_config_path = self.config["mcp"].get("servers_json", "config/mcp_config.json")
self.mcp_manager = SyncMCPManager(mcp_config_path) self.mcp_manager = SyncMCPManager(mcp_config_path)
def get_chat_response(self, messages): def get_chat_response(self, messages):