Skip to content

Commit

Permalink
chore: print model name in connectivity test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyutaotao committed Dec 26, 2024
1 parent aa3b945 commit 96a893a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions connectivity-test/tests/connectivity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { callToGetJSONObject } from "@midscene/core/ai-model";
// read and parse .env file
const result = dotenv.config({
debug: true,
override: true,
});
if (result.error) {
throw result.error;
Expand All @@ -25,7 +26,7 @@ const imageBase64 = base64Encoded(imagePath);

describe("Use OpenAI SDK directly", () => {
const model = process.env.MIDSCENE_MODEL_NAME || "gpt-4o";
it("basic call", async () => {
it(`basic call with ${model}`, async () => {
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
baseURL: process.env.OPENAI_BASE_URL,
Expand All @@ -38,7 +39,7 @@ describe("Use OpenAI SDK directly", () => {
expect(response.choices[0].message.content).toBeTruthy();
});

it("with image input", async () => {
it(`with image input with ${model}`, async () => {
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
baseURL: process.env.OPENAI_BASE_URL,
Expand Down

0 comments on commit 96a893a

Please sign in to comment.