remove o1-preview (deprecated) from tests
This commit is contained in:
parent
bdda704a60
commit
b9a3901920
2 changed files with 3 additions and 3 deletions
|
|
@ -213,7 +213,7 @@ describe("LLM", () => {
|
|||
testToolCall: true,
|
||||
});
|
||||
testLLM(
|
||||
new OpenAI({ apiKey: process.env.OPENAI_API_KEY, model: "o1-preview" }),
|
||||
new OpenAI({ apiKey: process.env.OPENAI_API_KEY, model: "o3-mini" }),
|
||||
{ skip: false, timeout: 60000 },
|
||||
);
|
||||
testLLM(new OpenAI({ apiKey: process.env.OPENAI_API_KEY, model: "o1" }), {
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ describe("OpenAI", () => {
|
|||
test("should handle O1 models correctly", async () => {
|
||||
const openai = new OpenAI({
|
||||
apiKey: "test-api-key",
|
||||
model: "o1-preview",
|
||||
model: "o1",
|
||||
apiBase: "https://api.openai.com/v1/",
|
||||
});
|
||||
|
||||
|
|
@ -296,7 +296,7 @@ describe("OpenAI", () => {
|
|||
"api-key": "test-api-key",
|
||||
},
|
||||
body: {
|
||||
model: "o1-preview",
|
||||
model: "o1",
|
||||
messages: [{ role: "user", content: "hello" }],
|
||||
stream: true,
|
||||
max_completion_tokens: 100,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue