Skip to content

Commit 144bee7

Browse files
committed
simplify and reduce context usagr
1 parent 0331578 commit 144bee7

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ jobs:
207207
poetry run patchwork GenerateDiagram --log debug \
208208
--patched_api_key=${{ secrets.PATCHED_API_KEY }} \
209209
--github_api_key=${{ secrets.SCM_GITHUB_KEY }} \
210+
--folder_path=patchwork \
210211
--disable_telemetry
211212
212213
- name: Generate UnitTests

patchwork/patchflows/GenerateDiagram/GenerateDiagram.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ def __init__(self, inputs):
2525
final_inputs.update(inputs)
2626

2727
final_inputs["prompt_id"] = "GenerateDiagram"
28-
if "folder_path" not in final_inputs.keys():
29-
final_inputs["folder_path"] = Path.cwd()
30-
else:
31-
final_inputs["folder_path"] = Path(final_inputs["folder_path"])
3228

3329
if "prompt_template_file" not in final_inputs:
3430
final_inputs["prompt_template_file"] = _DEFAULT_PROMPT_JSON

patchwork/patchflows/GenerateDiagram/defaults.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# model_top_p: 0.95
1111
# model_max_tokens: 2000
1212

13-
base_path : diagram.md
14-
13+
base_path: diagram.md
14+
folder_path: .
1515
# CommitChanges Inputs
1616
disable_branch: false
1717

0 commit comments

Comments
 (0)