Skip to content

Commit

Permalink
more spacing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidx33 committed Dec 16, 2024
1 parent e4ffcd8 commit 2fda964
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/evaluation/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ def target(inputs: dict) -> dict:
response = openai_client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{"role": "system", "content": "Answer the following question accurately"},
{"role": "user", "content": inputs["question"]},
{ "role": "system", "content": "Answer the following question accurately" },
{ "role": "user", "content": inputs["question"] },
],
)
return { "response": response.choices[0].message.content.strip() }
Expand Down Expand Up @@ -256,7 +256,7 @@ def accuracy(outputs: dict, reference_outputs: dict) -> bool:
response = openai_client.beta.chat.completions.parse(
model="gpt-4o-mini",
messages=[
{"role": "system", "content": instructions},
{ "role": "system", "content": instructions },
{
"role": "user",
"content": context.replace("{prediction}", outputs["response"]).replace(
Expand Down

0 comments on commit 2fda964

Please sign in to comment.