Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
minhanh-phan committed Nov 21, 2024
1 parent ee8f631 commit 17be914
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sdk/openai/openai/test/public/completions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});

Expand All @@ -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) => {
Expand Down

0 comments on commit 17be914

Please sign in to comment.