Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenAI] Skip failing deployment #32053

Merged
merged 11 commits into from
Dec 5, 2024
3 changes: 2 additions & 1 deletion sdk/openai/openai/test/public/completions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
withDeployments,
} from "./utils/utils.js";
import { type ChatCompletionMessageParam } from "openai/resources/chat/completions.mjs";
import { completionsModelsToSkip, functionCallModelsToSkip } from "./utils/models.js";
import { completionsModelsToSkip, functionCallModelsToSkip, jsonResponseModelsToSkip } from "./utils/models.js";
import "../../src/types/index.js";

describe("Completions", function () {
Expand Down Expand Up @@ -368,6 +368,7 @@ describe("Completions", function () {
assert.fail(`Invalid JSON: ${content}`);
}
},
jsonResponseModelsToSkip,
),
chatCompletionDeployments,
);
Expand Down
3 changes: 3 additions & 0 deletions sdk/openai/openai/test/public/utils/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ export const ttsModelsToSkip = [{ name: "whisper", version: "001" }];

// TODO: Remove this when "completion_tokens" is consistently returned
export const completionsModelsToSkip = [{ name: "gpt-4", version: "0613" }];

// TODO: Remove this when "completion_tokens" is consistently returned
export const jsonResponseModelsToSkip = [{ name: "gpt-4", version: "0125-Preview" }];
2 changes: 1 addition & 1 deletion sdk/openai/openai/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default mergeConfig(
viteConfig,
defineConfig({
test: {
testTimeout: 250000,
testTimeout: 300000,
hookTimeout: 25000,
fileParallelism: false,
include: ["test/public/**/*.spec.ts"],
Expand Down
Loading