Uploading files for retrieval - Files coming from Google Cloud Storage

What I’m trying to do is, I want to update the file uploaded to the Files programmatically using the generatedSignedURL from the GCStorage.

Is there a way we could change the data type of the file property in the API or is there someone who could share a conversion of the signedURL from cloudstorage as an uploadable Type that the API could accept?

const assistantFile = await this.openaiClient.files.create({
    file: aifile, // instead of the Uploadable type
    purpose: "assistants",
 });
1 Like