Selcan Yukcu commited on
Commit
a425c70
·
1 Parent(s): 18c4b26

refactor: update API configuration to use new endpoint variables

Browse files
Files changed (2) hide show
  1. .env.example +3 -1
  2. utils/config.py +3 -1
.env.example CHANGED
@@ -1,7 +1,9 @@
1
  # Example .env file for Defect Solver MCP Server
2
  # Copy this file to .env and set your values
3
  DS_API_BASE_URL=https://learning.test.orbitant.dev/api
4
- DS_API_ENDPOINT=/mcp_bug_localization
 
 
5
 
6
  # Replace with your Hugging Face access token
7
  HF_ACCESS_TOKEN=
 
1
  # Example .env file for Defect Solver MCP Server
2
  # Copy this file to .env and set your values
3
  DS_API_BASE_URL=https://learning.test.orbitant.dev/api
4
+ DS_API_MULTIMODULE_ENDPOINT=/mcp_multi_module_bug_localization
5
+ DS_API_SINGLEMODULE_ENDPOINT=/mcp_single_module_bug_localization
6
+ DS_API_SEARCHSPACE_ENDPOINT=/mcp_search_space_routing
7
 
8
  # Replace with your Hugging Face access token
9
  HF_ACCESS_TOKEN=
utils/config.py CHANGED
@@ -6,7 +6,9 @@ load_dotenv()
6
  # API Configuration
7
  API_CONFIG = {
8
  "api_base_url": os.getenv("DS_API_BASE_URL", "https://dnext-ds-api.hf.space"),
9
- "api_endpoint": os.getenv("DS_API_ENDPOINT", "/mcp_bug_localization"),
 
 
10
  "hf_access_token": os.getenv("HF_ACCESS_TOKEN", None),
11
  "timeout": 30.0,
12
  }
 
6
  # API Configuration
7
  API_CONFIG = {
8
  "api_base_url": os.getenv("DS_API_BASE_URL", "https://dnext-ds-api.hf.space"),
9
+ "api_multimodule_endpoint": os.getenv("DS_API_MULTIMODULE_ENDPOINT", "/mcp_multi_module_bug_localization"),
10
+ "api_singlemodule_endpoint": os.getenv("DS_API_SINGLEMODULE_ENDPOINT", "/mcp_single_module_bug_localization"),
11
+ "api_searchspace_endpoint": os.getenv("DS_API_SEARCHSPACE_ENDPOINT", "/mcp_search_space_routing"),
12
  "hf_access_token": os.getenv("HF_ACCESS_TOKEN", None),
13
  "timeout": 30.0,
14
  }