-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
Copy pathmedia.ts
33 lines (29 loc) · 1.06 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
32
33
import {
GoogleAbstractedClient,
GoogleBaseLLMInput,
} from "@langchain/google-common";
import {
BlobStoreAIStudioFileBase,
BlobStoreAIStudioFileBaseParams,
BlobStoreGoogleCloudStorageBase,
BlobStoreGoogleCloudStorageBaseParams,
} from "@langchain/google-common/experimental/media";
import { WebGoogleAuth, WebGoogleAuthOptions } from "./auth.js";
export interface BlobStoreGoogleCloudStorageParams
extends BlobStoreGoogleCloudStorageBaseParams<WebGoogleAuthOptions> {}
export class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<WebGoogleAuthOptions> {
buildClient(
fields?: GoogleBaseLLMInput<WebGoogleAuthOptions>
): GoogleAbstractedClient {
return new WebGoogleAuth(fields);
}
}
export interface BlobStoreAIStudioFileParams
extends BlobStoreAIStudioFileBaseParams<WebGoogleAuthOptions> {}
export class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<WebGoogleAuthOptions> {
buildAbstractedClient(
fields?: BlobStoreAIStudioFileParams
): GoogleAbstractedClient {
return new WebGoogleAuth(fields);
}
}