Skip to content

Commit

Permalink
simplify and reduce context usagr
Browse files Browse the repository at this point in the history
  • Loading branch information
CTY-git committed Dec 2, 2024
1 parent 0331578 commit 144bee7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ jobs:
poetry run patchwork GenerateDiagram --log debug \
--patched_api_key=${{ secrets.PATCHED_API_KEY }} \
--github_api_key=${{ secrets.SCM_GITHUB_KEY }} \
--folder_path=patchwork \
--disable_telemetry
- name: Generate UnitTests
Expand Down
4 changes: 0 additions & 4 deletions patchwork/patchflows/GenerateDiagram/GenerateDiagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ def __init__(self, inputs):
final_inputs.update(inputs)

final_inputs["prompt_id"] = "GenerateDiagram"
if "folder_path" not in final_inputs.keys():
final_inputs["folder_path"] = Path.cwd()
else:
final_inputs["folder_path"] = Path(final_inputs["folder_path"])

if "prompt_template_file" not in final_inputs:
final_inputs["prompt_template_file"] = _DEFAULT_PROMPT_JSON
Expand Down
4 changes: 2 additions & 2 deletions patchwork/patchflows/GenerateDiagram/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# model_top_p: 0.95
# model_max_tokens: 2000

base_path : diagram.md

base_path: diagram.md
folder_path: .
# CommitChanges Inputs
disable_branch: false

Expand Down

0 comments on commit 144bee7

Please sign in to comment.