Skip to content

Commit a2cc7a3

Browse files
committed
Refactor compile_and_fix function to simplify MCP service initialization by removing unused parameters
1 parent da32ac1 commit a2cc7a3

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
19
env:
210
LLM_API_BASE: "https://0x9fcf7888963793472bfcb8c14f4b6b47a7462f17.gaia.domains/v1"
311
LLM_MODEL: "Qwen2.5-Coder-3B-Instruct"
4-
LLM_EMBED_MODEL: "gte-Qwen2-1.5B-instruct"
12+
LLM_EMBED_MODEL: "gte-Qwen2-1.5B-instruct"
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.11'
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
- name: Run tests
28+
run: |
29+
pytest

app/main.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,7 @@ async def compile_and_fix(request: CompileAndFixRequest):
165165
# Create MCP service instance
166166
mcp_service = RustCompilerMCP(
167167
vector_store=get_vector_store(),
168-
llm_client=llm_client,
169-
compiler=compiler,
170-
parser=parser,
171-
prompt_generator=prompt_gen
168+
llm_client=llm_client
172169
)
173170

174171
# Compile and fix code

0 commit comments

Comments
 (0)