Skip to content

Commit 6e2d696

Browse files
Merge pull request #699 from narengogi/hotfix/interface-fix
2 parents 89bc57f + 240e16c commit 6e2d696

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
})),

src/providers/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface ProviderAPIConfig {
5050
gatewayRequestBody: Params;
5151
}) => string;
5252
/** A function to determine if the request body should be transformed to form data */
53-
transformToFormData: (args: { gatewayRequestBody: Params }) => boolean;
53+
transformToFormData?: (args: { gatewayRequestBody: Params }) => boolean;
5454
}
5555

5656
export type endpointStrings =

0 commit comments

Comments
 (0)