Skip to content

Commit

Permalink
Pause the feature that asks the sender back.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshinishio committed Jan 10, 2025
1 parent 3544c12 commit 6767893
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions services/gitauto_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,19 +199,19 @@ async def handle_gitauto(
{"role": "user", "content": f"Metadata:\n{base_args}"},
{"role": "user", "content": f"Today's date:\n{today}"},
]
(*_, token_input, token_output, is_commented) = chat_with_agent(
messages=messages, base_args=base_args, mode="comment"
)
if is_commented:
end_time = time.time()
supabase_manager.complete_and_update_usage_record(
usage_record_id=usage_record_id,
is_completed=True, # False is only for GitAuto's failure
token_input=token_input,
token_output=token_output,
total_seconds=int(end_time - current_time),
)
return
# (*_, token_input, token_output, is_commented) = chat_with_agent(
# messages=messages, base_args=base_args, mode="comment"
# )
# if is_commented:
# end_time = time.time()
# supabase_manager.complete_and_update_usage_record(
# usage_record_id=usage_record_id,
# is_completed=True, # False is only for GitAuto's failure
# token_input=token_input,
# token_output=token_output,
# total_seconds=int(end_time - current_time),
# )
# return

# Create a remote branch
comment_body = "Looks like it's doable. Creating the remote branch..."
Expand Down

0 comments on commit 6767893

Please sign in to comment.