Skip to content

Commit 48fddce

Browse files
committed
Remove repeated uses of the same additional instructions
1 parent 9825608 commit 48fddce

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
GITHUB_TOKEN: ${{ github.token }}
9191
run: >-
9292
gh release create
93-
'v0.2.11'
93+
'v0.2.12'
9494
--repo '${{ github.repository }}'
9595
--notes ""
9696
@@ -102,5 +102,5 @@ jobs:
102102
# sigstore-produced signatures and certificates.
103103
run: >-
104104
gh release upload
105-
'v0.2.11' dist/**
105+
'v0.2.12' dist/**
106106
--repo '${{ github.repository }}'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
]
1111
description = "Documentation for `weco`, a CLI for using Weco AI's code optimizer."
1212
readme = "README.md"
13-
version = "0.2.11"
13+
version = "0.2.12"
1414
license = {text = "MIT"}
1515
requires-python = ">=3.8"
1616
dependencies = ["requests", "rich"]

weco/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# DO NOT EDIT
2-
__pkg_version__ = "0.2.11"
2+
__pkg_version__ = "0.2.12"
33
__api_version__ = "v1"
44
__base_url__ = f"https://api.aide.weco.ai/{__api_version__}"

weco/cli.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,12 @@ def main() -> None:
198198
)
199199

200200
for step in range(1, steps):
201-
# Re-read instructions from the original source (file path or string) BEFORE each suggest call
202-
current_additional_instructions = read_additional_instructions(
203-
additional_instructions=args.additional_instructions
204-
)
205201
# Evaluate the current output and get the next solution
206202
eval_and_next_solution_response = evaluate_feedback_then_suggest_next_solution(
207203
console=console,
208204
session_id=session_id,
209205
execution_output=term_out,
210-
additional_instructions=current_additional_instructions,
206+
additional_instructions=None,
211207
api_keys=api_keys,
212208
timeout=timeout,
213209
)
@@ -295,16 +291,12 @@ def main() -> None:
295291
transition_delay=0.1, # Slightly longer delay for evaluation results
296292
)
297293

298-
# Re-read instructions before the final feedback step
299-
current_additional_instructions = read_additional_instructions(
300-
additional_instructions=args.additional_instructions
301-
)
302294
# Ensure we pass evaluation results for the last step's generated solution
303295
eval_and_next_solution_response = evaluate_feedback_then_suggest_next_solution(
304296
console=console,
305297
session_id=session_id,
306298
execution_output=term_out,
307-
additional_instructions=current_additional_instructions,
299+
additional_instructions=None,
308300
api_keys=api_keys,
309301
timeout=timeout,
310302
)

0 commit comments

Comments
 (0)