Skip to content

Commit a5eacf0

Browse files
authored
feat: added api key in vision APIs (#225)
* feat: added api key in vision APIs * chore: added changeset * fix: updated llm version
1 parent a63961d commit a5eacf0

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.changeset/cool-pianos-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"appwright": patch
3+
---
4+
5+
feat: added api key in vision APIs

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"license": "Apache-2.0",
3737
"description": "E2E mobile app testing done right, with the Playwright test runner",
3838
"dependencies": {
39-
"@empiricalrun/llm": "^0.9.21",
39+
"@empiricalrun/llm": "^0.9.25",
4040
"@ffmpeg-installer/ffmpeg": "^1.1.0",
4141
"@playwright/test": "^1.47.1",
4242
"appium": "^2.6.0",

src/vision/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ export class VisionProvider {
9090
options?: { useCache?: boolean },
9191
): Promise<{ x: number; y: number }> {
9292
test.skip(
93-
!process.env.VISION_MODEL_ENDPOINT,
94-
"LLM vision based tap is not enabled. Set the VISION_MODEL_ENDPOINT environment variable to enable it",
93+
!process.env.EMPIRICAL_API_KEY,
94+
"LLM vision based tap is not enabled. Set the EMPIRICAL_API_KEY environment variable to enable it",
9595
);
9696
const base64Image = await this.webDriverClient.takeScreenshot();
9797
const coordinates = await getCoordinatesFor(prompt, base64Image, options);

0 commit comments

Comments
 (0)