Skip to content

Commit

Permalink
Ensure GPT labels formatted correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
markbotterill committed May 2, 2024
1 parent 3d15d53 commit 3800d73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ def label_question(user_question, client):
)
output = chat_completion.choices[0].message.content
label = re.findall(r"<Response>\s*([\s\S]*?)\s*</Response>", output)[0]
return label
return label.upper()

0 comments on commit 3800d73

Please sign in to comment.