Skip to content

Commit

Permalink
Merge pull request #55 from vlm-run/sh/add_zod
Browse files Browse the repository at this point in the history
Sh/add zod
  • Loading branch information
shahrear33 authored Feb 13, 2025
2 parents f31b1de + 199f1be commit 4aedce1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vlmrun",
"version": "0.2.2",
"version": "0.2.3",
"description": "The official TypeScript library for the VlmRun API",
"author": "VlmRun <[email protected]>",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/client/predictions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class ImagePredictions extends Predictions {
"image/generate",
undefined,
{
image: encodedImages[0],
images: encodedImages,
model,
domain,
batch,
Expand Down
4 changes: 0 additions & 4 deletions tests/integration/client/predictions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ describe("Integration: Predictions", () => {
});

const response = result.response as z.infer<typeof schema>;
console.log(response);
expect(response.invoice_id).toBe("9999999");
expect(response.total).toBe(400);
});
Expand Down Expand Up @@ -212,8 +211,6 @@ describe("Integration: Predictions", () => {

const response = result.response as z.infer<typeof schema>;

console.log(response);

expect(result).toHaveProperty("id");
expect(result.status).toBe("completed");
expect(response.invoice_id).toContain("23413561D");
Expand Down Expand Up @@ -260,7 +257,6 @@ describe("Integration: Predictions", () => {
const waitResponse = await client.predictions.wait(result.id);
const response = waitResponse.response as z.infer<typeof schema>;

console.log(waitResponse);
expect(waitResponse.status).toBe("completed");
expect(waitResponse.response).toHaveProperty("invoice_id");
expect(waitResponse.response).toHaveProperty("total");
Expand Down

0 comments on commit 4aedce1

Please sign in to comment.