-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
Copy pathmedia.ts
31 lines (27 loc) · 1.04 KB
/
media.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { GoogleAbstractedClient } from "@langchain/google-common";
import {
BlobStoreGoogleCloudStorageBase,
BlobStoreGoogleCloudStorageBaseParams,
BlobStoreAIStudioFileBase,
BlobStoreAIStudioFileBaseParams,
} from "@langchain/google-common/experimental/media";
import { GoogleAuthOptions } from "google-auth-library";
import { GAuthClient } from "./auth.js";
export interface BlobStoreGoogleCloudStorageParams
extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}
export class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {
buildClient(
fields?: BlobStoreGoogleCloudStorageParams
): GoogleAbstractedClient {
return new GAuthClient(fields);
}
}
export interface BlobStoreAIStudioFileParams
extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}
export class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {
buildAbstractedClient(
fields?: BlobStoreAIStudioFileParams
): GoogleAbstractedClient {
return new GAuthClient(fields);
}
}