Skip to content

Commit

Permalink
Update pipelines.py
Browse files Browse the repository at this point in the history
Modified to pass tests - now returns a string
  • Loading branch information
kuraisle committed Oct 18, 2024
1 parent 127dba3 commit a5b4a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Carrot-Assistant/evaluation/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ def run(self, input: Dict[str, str]) -> str:
prompt = self.prompt_template.render(input)
return self._model.create_chat_completion(
messages=[{"role": "user", "content": prompt}]
)["choices"][0]["message"]
)["choices"][0]["message"]["content"]

0 comments on commit a5b4a31

Please sign in to comment.