Skip to content

Commit

Permalink
undid last change
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Sep 6, 2024
1 parent 8652c45 commit 23c2e68
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ontobot_change_agent/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,8 @@ def process_issue(
ctx.params["model"] = model
ctx.params["docs"] = rag_docs
response = extract_commands(execute.invoke(ctx))
if "[" in response:
processed_commands = ast.literal_eval(response)
else:
processed_commands = response.split("\n")
KGCL_COMMANDS = [
command.replace('"', "'").strip() for command in processed_commands
command.replace('"', "'") for command in ast.literal_eval(response)
]
if KGCL_COMMANDS:
click.echo(f"llm-change-agent result: {response}")
Expand Down

0 comments on commit 23c2e68

Please sign in to comment.