Skip to content

Commit

Permalink
Removed FIXME; we'll always use a number of responses, aka n, of 1 so…
Browse files Browse the repository at this point in the history
… no need to use call() over invoke()
  • Loading branch information
falquaddoomi committed Dec 3, 2024
1 parent a98f69a commit 4c66a58
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libs/manubot_ai_editor/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,12 +567,6 @@ def revise_paragraph(
else:
message = response.strip()

# FIXME: the prior code retrieved the first of the 'choices'
# response from the openai client. now, we only get one
# response from the langchain client, but i should check
# if that's really how langchain works or if there is a way
# to get multiple 'choices' back from the backend.

except Exception as e:
error_message = str(e)
print(f"Error: {error_message}")
Expand Down

0 comments on commit 4c66a58

Please sign in to comment.