Skip to content

Commit

Permalink
Remove unnecessary input text branch (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyastremsky authored Jul 3, 2024
1 parent d3fadc1 commit 44ed121
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ def _get_openai_input_text(self, req_inputs: dict) -> str:
return payload["messages"][0]["content"]
elif self._response_format == ResponseFormat.OPENAI_COMPLETIONS:
return payload["prompt"]
elif self._response_format == ResponseFormat.HUGGINGFACE_RANKINGS:
return payload["query"]
else:
raise ValueError(
"Failed to parse OpenAI request input in profile export file."
Expand Down

0 comments on commit 44ed121

Please sign in to comment.