From 17be91402683ab00922747cb657e15be0fd109b7 Mon Sep 17 00:00:00 2001 From: Minh-Anh Phan Date: Thu, 21 Nov 2024 20:33:24 +0000 Subject: [PATCH] fix lint --- sdk/openai/openai/test/public/completions.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/openai/openai/test/public/completions.spec.ts b/sdk/openai/openai/test/public/completions.spec.ts index 7d09529f11d3..dd364e4bfbbd 100644 --- a/sdk/openai/openai/test/public/completions.spec.ts +++ b/sdk/openai/openai/test/public/completions.spec.ts @@ -181,18 +181,18 @@ describe("Completions", function () { const chatCompletionDeployments: DeploymentInfo[] = []; describe("getChatCompletions", function () { - describe.runIf(apiVersion == APIVersion.Preview)("structured output", function () { + describe.runIf(apiVersion === APIVersion.Preview)("structured output", function () { it("structured output for chat completions", async function () { await withDeployments( deployments, (deploymentName) => { - const Step = z.object({ + const step = z.object({ explanation: z.string(), output: z.string(), }); - const MathResponse = z.object({ - steps: z.array(Step), + const mathResponse = z.object({ + steps: z.array(step), final_answer: z.string(), }); @@ -206,7 +206,7 @@ describe("Completions", function () { }, { role: "user", content: "solve 8x + 3 = 21" }, ], - response_format: zodResponseFormat(MathResponse, "mathResponse"), + response_format: zodResponseFormat(mathResponse, "mathResponse"), }); }, (result) => {