Skip to content

Commit 240e16c

Browse files
committed
change response type of createdAt
1 parent d4ab773 commit 240e16c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/google-vertex-ai/imageGenerate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const GoogleImageGenResponseTransform: (
153153

154154
if ('predictions' in response) {
155155
return {
156-
created: `${new Date().getTime()}`,
156+
created: Math.floor(Date.now() / 1000),
157157
data: response.predictions.map((generation) => ({
158158
b64_json: generation.bytesBase64Encoded,
159159
})),

0 commit comments

Comments
 (0)