Skip to content

Commit

Permalink
Improve the counter example
Browse files Browse the repository at this point in the history
  • Loading branch information
klntsky committed Nov 12, 2024
1 parent 69d8ebf commit ab591c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/examples/counter.metaprompt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.[:if [:number] is zero or less
counter is: [:number]
[:if [:number] is zero or less
:then done!
:else
[:use ./counter
Expand Down
1 change: 0 additions & 1 deletion python/src/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ async def eval_ast(ast, runtime):
async for chunk in eval_ast(ast["condition"], runtime):
condition_chunks.append(chunk)
condition = "".join(condition_chunks)
print(condition)
prompt_result = ""
MAX_RETRIES = 3
retries = 0
Expand Down

0 comments on commit ab591c7

Please sign in to comment.