Skip to content

Commit

Permalink
chore: update connectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyutaotao committed Dec 26, 2024
1 parent 96a893a commit 1e483fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions connectivity-test/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package-lock.json
.env
.env.*

# Midscene.js dump files
midscene_run/midscene-report
Expand Down
4 changes: 2 additions & 2 deletions connectivity-test/tests/connectivity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ 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;
}

// uncomment to see the parsed result. It may include some credentials.
// console.log(".env file parsed result");
// console.log(result.parsed);
Expand All @@ -39,7 +39,7 @@ describe("Use OpenAI SDK directly", () => {
expect(response.choices[0].message.content).toBeTruthy();
});

it(`with image input with ${model}`, async () => {
it(`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 1e483fb

Please sign in to comment.