From 2fda9645f9be5543874934c70c49202faa1f5b3f Mon Sep 17 00:00:00 2001 From: David Xu Date: Sun, 15 Dec 2024 22:37:32 -0800 Subject: [PATCH] more spacing fixes --- docs/evaluation/index.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/evaluation/index.mdx b/docs/evaluation/index.mdx index 228bbf15..050c91bd 100644 --- a/docs/evaluation/index.mdx +++ b/docs/evaluation/index.mdx @@ -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() } @@ -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(