File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ export const GoogleImageGenResponseTransform: (
153
153
154
154
if ( 'predictions' in response ) {
155
155
return {
156
- created : ` ${ new Date ( ) . getTime ( ) } ` ,
156
+ created : Math . floor ( Date . now ( ) / 1000 ) ,
157
157
data : response . predictions . map ( ( generation ) => ( {
158
158
b64_json : generation . bytesBase64Encoded ,
159
159
} ) ) ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export interface ProviderAPIConfig {
50
50
gatewayRequestBody : Params ;
51
51
} ) => string ;
52
52
/** 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 ;
54
54
}
55
55
56
56
export type endpointStrings =
You can’t perform that action at this time.
0 commit comments