@anvia/gemini 1.0.0-rc.1 → 1.0.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -25
- package/dist/index.d.ts +84 -102
- package/dist/index.js +907 -336
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ const client = new GeminiClient({
|
|
|
26
26
|
apiKey,
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
const model = client.completionModel("gemini-
|
|
29
|
+
const model = client.completionModel({ modelId: "gemini-3.7-flash" });
|
|
30
30
|
|
|
31
31
|
const agent = new Agent({
|
|
32
32
|
id: "assistant",
|
|
@@ -34,25 +34,25 @@ const agent = new Agent({
|
|
|
34
34
|
instructions: "Answer clearly and concisely.",
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
console.log(response.output);
|
|
37
|
+
const result = await agent.generate({ prompt: "Summarize Anvia in one sentence." });
|
|
38
|
+
if (result.type === "response") console.log(result.output);
|
|
40
39
|
```
|
|
41
40
|
|
|
42
41
|
## Vertex AI
|
|
43
42
|
|
|
44
|
-
Use Vertex AI
|
|
43
|
+
Use the exclusive Vertex AI configuration with a Google Cloud project and location:
|
|
45
44
|
|
|
46
45
|
```ts
|
|
47
46
|
import { GeminiClient } from "@anvia/gemini";
|
|
48
47
|
|
|
49
48
|
const client = new GeminiClient({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
vertexAi: {
|
|
50
|
+
projectId: "my-gcp-project",
|
|
51
|
+
location: "us-central1",
|
|
52
|
+
},
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
const model = client.completionModel("gemini-
|
|
55
|
+
const model = client.completionModel({ modelId: "gemini-3.7-flash" });
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
The Google SDK uses Application Default Credentials. For a service-account JSON file, set
|
|
@@ -66,11 +66,12 @@ Trusted credential objects can also be passed explicitly:
|
|
|
66
66
|
|
|
67
67
|
```ts
|
|
68
68
|
const client = new GeminiClient({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
vertexAi: {
|
|
70
|
+
projectId: "my-gcp-project",
|
|
71
|
+
location: "us-central1",
|
|
72
|
+
googleAuthOptions: {
|
|
73
|
+
credentials: serviceAccountJson,
|
|
74
|
+
},
|
|
74
75
|
},
|
|
75
76
|
});
|
|
76
77
|
```
|
|
@@ -81,34 +82,39 @@ JSON or service-account keys.
|
|
|
81
82
|
## Embeddings
|
|
82
83
|
|
|
83
84
|
```ts
|
|
84
|
-
const embeddings = client.embeddingModel("gemini-embedding-
|
|
85
|
+
const embeddings = client.embeddingModel({ modelId: "gemini-embedding-2" });
|
|
85
86
|
const vectors = await embeddings.embedTexts(["Anvia is a TypeScript AI runtime."]);
|
|
86
87
|
```
|
|
87
88
|
|
|
88
89
|
## Image Generation
|
|
89
90
|
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
Choose the image API explicitly. Gemini native image models use `generateContent`; Imagen uses
|
|
92
|
+
`generateImages`.
|
|
92
93
|
|
|
93
94
|
```ts
|
|
94
95
|
import { GEMINI_2_5_FLASH_IMAGE, IMAGEN_4_GENERATE, GeminiClient } from "@anvia/gemini";
|
|
95
96
|
|
|
96
97
|
const client = new GeminiClient({ apiKey });
|
|
97
98
|
|
|
98
|
-
const nativeImageModel = client.imageGenerationModel(
|
|
99
|
-
|
|
99
|
+
const nativeImageModel = client.imageGenerationModel({
|
|
100
|
+
api: "generateContent",
|
|
101
|
+
modelId: GEMINI_2_5_FLASH_IMAGE,
|
|
102
|
+
});
|
|
103
|
+
const imagenModel = client.imageGenerationModel({
|
|
104
|
+
api: "generateImages",
|
|
105
|
+
modelId: IMAGEN_4_GENERATE,
|
|
106
|
+
});
|
|
100
107
|
```
|
|
101
108
|
|
|
102
109
|
## Exports
|
|
103
110
|
|
|
104
111
|
- `GeminiClient`
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
- `GeminiImageGenerationModel`
|
|
108
|
-
- `GeminiImagenGenerationModel`
|
|
109
|
-
- `GeminiTranscriptionModel`
|
|
112
|
+
- structural completion, embedding, image, and transcription handle types
|
|
113
|
+
- Gemini model-ID types
|
|
110
114
|
- `GEMINI_2_5_FLASH_IMAGE`
|
|
111
|
-
- `
|
|
115
|
+
- `GEMINI_3_1_FLASH_IMAGE`
|
|
116
|
+
- `GEMINI_3_1_FLASH_LITE_IMAGE`
|
|
117
|
+
- `GEMINI_3_PRO_IMAGE`
|
|
112
118
|
- `IMAGEN_4_GENERATE`
|
|
113
119
|
- `gemini`
|
|
114
120
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,133 +1,115 @@
|
|
|
1
|
+
import { ModelContextLimits, StreamingCompletionModel } from '@anvia/core/completion';
|
|
2
|
+
import { EmbeddingModel } from '@anvia/core/embeddings';
|
|
3
|
+
import { ImageGenerationModel } from '@anvia/core/image-generation';
|
|
1
4
|
import { ModelId, ModelListingClient, ModelList } from '@anvia/core/model-listing';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { EmbeddingModel, Embedding } from '@anvia/core/embeddings';
|
|
5
|
-
import { ImageGenerationModel, ImageGenerationRequest, ImageGenerationResponse } from '@anvia/core/image-generation';
|
|
6
|
-
import { TranscriptionModel, TranscriptionRequest, TranscriptionResponse } from '@anvia/core/transcription';
|
|
5
|
+
import { TranscriptionModel } from '@anvia/core/transcription';
|
|
6
|
+
import { GoogleGenAIOptions, GoogleGenAI } from '@google/genai';
|
|
7
7
|
|
|
8
|
-
type
|
|
9
|
-
type
|
|
10
|
-
type
|
|
11
|
-
type
|
|
12
|
-
type
|
|
13
|
-
type
|
|
14
|
-
type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
private readonly client;
|
|
18
|
-
readonly defaultModel: GeminiCompletionModelName;
|
|
19
|
-
private readonly metadataOptions;
|
|
20
|
-
readonly provider = "gemini";
|
|
21
|
-
readonly capabilities: CompletionModelCapabilities;
|
|
22
|
-
constructor(client: GoogleGenAI, defaultModel?: GeminiCompletionModelName, metadataOptions?: CompletionModelMetadataOptions);
|
|
23
|
-
getModelInfo(model?: GeminiCompletionModelName): CompletionModelInfo<GeminiCompletionModelName> | undefined;
|
|
24
|
-
traceRequest(request: CompletionRequest<GeminiCompletionModelName>, options?: {
|
|
25
|
-
stream?: boolean | undefined;
|
|
26
|
-
}): JsonObject;
|
|
27
|
-
completion(request: CompletionRequest<GeminiCompletionModelName>): Promise<CompletionResponse>;
|
|
28
|
-
streamCompletion(request: CompletionRequest<GeminiCompletionModelName>): AsyncIterable<CompletionStreamEvent>;
|
|
29
|
-
}
|
|
8
|
+
type KnownGeminiCompletionModelId = "gemini-2.0-flash" | "gemini-2.0-flash-lite" | "gemini-2.5-flash" | "gemini-2.5-flash-image" | "gemini-2.5-flash-lite" | "gemini-2.5-flash-preview-tts" | "gemini-2.5-pro" | "gemini-2.5-pro-preview-tts" | "gemini-3-flash-preview" | "gemini-3-pro-image-preview" | "gemini-3-pro-preview" | "gemini-3.1-flash-image-preview" | "gemini-3.1-flash-image" | "gemini-3.1-flash-lite-image" | "gemini-3.1-flash-lite" | "gemini-3.1-flash-lite-preview" | "gemini-3.1-pro-preview" | "gemini-3.1-pro-preview-customtools" | "gemini-3.5-flash" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3-pro-image" | "gemini-flash-latest" | "gemini-flash-lite-latest" | "gemma-4-26b-a4b-it" | "gemma-4-31b-it";
|
|
9
|
+
type GeminiCompletionModelId = ModelId<KnownGeminiCompletionModelId>;
|
|
10
|
+
type KnownGeminiEmbeddingModelId = "gemini-embedding-001" | "gemini-embedding-2" | "gemini-embedding-2-preview";
|
|
11
|
+
type GeminiEmbeddingModelId = ModelId<KnownGeminiEmbeddingModelId>;
|
|
12
|
+
type KnownGeminiGenerateContentImageModelId = "gemini-2.5-flash-image" | "gemini-3.1-flash-image" | "gemini-3.1-flash-lite-image" | "gemini-3-pro-image-preview" | "gemini-3.1-flash-image-preview" | "gemini-3-pro-image";
|
|
13
|
+
type KnownGeminiGenerateImagesModelId = "imagen-4.0-generate-001";
|
|
14
|
+
type GeminiGenerateContentImageModelId = ModelId<KnownGeminiGenerateContentImageModelId>;
|
|
15
|
+
type GeminiGenerateImagesModelId = ModelId<KnownGeminiGenerateImagesModelId>;
|
|
16
|
+
type GeminiTranscriptionModelId = GeminiCompletionModelId;
|
|
30
17
|
|
|
31
18
|
type GeminiEmbeddingTaskType = "TASK_TYPE_UNSPECIFIED" | "RETRIEVAL_QUERY" | "RETRIEVAL_DOCUMENT" | "SEMANTIC_SIMILARITY" | "CLASSIFICATION" | "CLUSTERING" | "QUESTION_ANSWERING" | "FACT_VERIFICATION" | "CODE_RETRIEVAL_QUERY";
|
|
32
19
|
type GeminiEmbeddingModelOptions = {
|
|
20
|
+
modelId: GeminiEmbeddingModelId;
|
|
33
21
|
dimensions?: number | undefined;
|
|
34
22
|
maxBatchSize?: number | undefined;
|
|
35
23
|
taskType?: GeminiEmbeddingTaskType | undefined;
|
|
36
24
|
title?: string | undefined;
|
|
37
25
|
};
|
|
38
|
-
declare class GeminiEmbeddingModel implements EmbeddingModel {
|
|
39
|
-
private readonly client;
|
|
40
|
-
private readonly model;
|
|
41
|
-
readonly dimensions: number | undefined;
|
|
42
|
-
readonly maxBatchSize: number;
|
|
43
|
-
private readonly taskType;
|
|
44
|
-
private readonly title;
|
|
45
|
-
constructor(client: GoogleGenAI, model: GeminiEmbeddingModelName, options?: GeminiEmbeddingModelOptions);
|
|
46
|
-
embedTexts(texts: string[]): Promise<Embedding[]>;
|
|
47
|
-
private embedBatch;
|
|
48
|
-
private embeddingConfig;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
declare const GEMINI_2_5_FLASH_IMAGE = "gemini-2.5-flash-image";
|
|
52
|
-
declare const GEMINI_3_PRO_IMAGE_PREVIEW = "gemini-3-pro-image-preview";
|
|
53
|
-
declare const IMAGEN_4_GENERATE = "imagen-4.0-generate-001";
|
|
54
|
-
declare class GeminiImageGenerationModel implements ImageGenerationModel<unknown, GeminiImageGenerationModelName> {
|
|
55
|
-
private readonly client;
|
|
56
|
-
readonly defaultModel: GeminiImageGenerationModelName;
|
|
57
|
-
readonly provider = "gemini";
|
|
58
|
-
constructor(client: GoogleGenAI, defaultModel?: GeminiImageGenerationModelName);
|
|
59
|
-
imageGeneration(request: ImageGenerationRequest): Promise<ImageGenerationResponse<unknown>>;
|
|
60
|
-
}
|
|
61
|
-
declare class GeminiImagenGenerationModel implements ImageGenerationModel<unknown, GeminiImageGenerationModelName> {
|
|
62
|
-
private readonly client;
|
|
63
|
-
readonly defaultModel: GeminiImageGenerationModelName;
|
|
64
|
-
readonly provider = "gemini";
|
|
65
|
-
constructor(client: GoogleGenAI, defaultModel?: GeminiImageGenerationModelName);
|
|
66
|
-
imageGeneration(request: ImageGenerationRequest): Promise<ImageGenerationResponse<unknown>>;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
declare class GeminiTranscriptionModel implements TranscriptionModel<unknown, GeminiTranscriptionModelName> {
|
|
70
|
-
private readonly client;
|
|
71
|
-
readonly defaultModel: GeminiTranscriptionModelName;
|
|
72
|
-
readonly provider = "gemini";
|
|
73
|
-
constructor(client: GoogleGenAI, defaultModel?: GeminiTranscriptionModelName);
|
|
74
|
-
transcription(request: TranscriptionRequest): Promise<TranscriptionResponse<unknown>>;
|
|
75
|
-
}
|
|
76
26
|
|
|
77
27
|
type GeminiApiClientOptions = {
|
|
78
|
-
apiKey
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
location?: never;
|
|
28
|
+
apiKey: string;
|
|
29
|
+
vertexAi?: never;
|
|
30
|
+
client?: never;
|
|
82
31
|
};
|
|
83
32
|
type VertexClientOptions = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
33
|
+
vertexAi: {
|
|
34
|
+
projectId: string;
|
|
35
|
+
location: string;
|
|
36
|
+
googleAuthOptions?: GoogleGenAIOptions["googleAuthOptions"];
|
|
37
|
+
};
|
|
38
|
+
apiKey?: never;
|
|
39
|
+
client?: never;
|
|
40
|
+
};
|
|
41
|
+
type InjectedClientOptions = {
|
|
42
|
+
client: GoogleGenAI;
|
|
88
43
|
apiKey?: never;
|
|
44
|
+
vertexAi?: never;
|
|
45
|
+
};
|
|
46
|
+
type GeminiClientOptions = GeminiApiClientOptions | VertexClientOptions | InjectedClientOptions;
|
|
47
|
+
type GeminiCompletionModelOptions = {
|
|
48
|
+
modelId: GeminiCompletionModelId;
|
|
49
|
+
contextLimits?: ModelContextLimits | undefined;
|
|
50
|
+
};
|
|
51
|
+
type GeminiImageGenerationModelOptions = {
|
|
52
|
+
api: "generateContent";
|
|
53
|
+
modelId: GeminiGenerateContentImageModelId;
|
|
54
|
+
} | {
|
|
55
|
+
api: "generateImages";
|
|
56
|
+
modelId: GeminiGenerateImagesModelId;
|
|
89
57
|
};
|
|
90
|
-
type
|
|
91
|
-
|
|
58
|
+
type GeminiTranscriptionModelOptions = {
|
|
59
|
+
modelId: GeminiTranscriptionModelId;
|
|
92
60
|
};
|
|
61
|
+
type GeminiCompletionModelHandle = StreamingCompletionModel<unknown>;
|
|
62
|
+
type GeminiEmbeddingModelHandle = EmbeddingModel;
|
|
63
|
+
type GeminiImageGenerationModelHandle = ImageGenerationModel<unknown>;
|
|
64
|
+
type GeminiTranscriptionModelHandle = TranscriptionModel<unknown>;
|
|
93
65
|
declare class GeminiClient implements ModelListingClient {
|
|
94
|
-
readonly
|
|
95
|
-
constructor(options
|
|
96
|
-
completionModel(
|
|
97
|
-
embeddingModel(
|
|
98
|
-
imageGenerationModel(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
66
|
+
private readonly sdk;
|
|
67
|
+
constructor(options: GeminiClientOptions);
|
|
68
|
+
completionModel(options: GeminiCompletionModelOptions): GeminiCompletionModelHandle;
|
|
69
|
+
embeddingModel(options: GeminiEmbeddingModelOptions): GeminiEmbeddingModelHandle;
|
|
70
|
+
imageGenerationModel(options: GeminiImageGenerationModelOptions): GeminiImageGenerationModelHandle;
|
|
71
|
+
transcriptionModel(options: GeminiTranscriptionModelOptions): GeminiTranscriptionModelHandle;
|
|
72
|
+
listModels(options?: {
|
|
73
|
+
abortSignal?: AbortSignal | undefined;
|
|
74
|
+
}): Promise<ModelList>;
|
|
102
75
|
}
|
|
103
76
|
|
|
77
|
+
declare const GEMINI_2_5_FLASH_IMAGE = "gemini-2.5-flash-image";
|
|
78
|
+
declare const GEMINI_3_1_FLASH_IMAGE = "gemini-3.1-flash-image";
|
|
79
|
+
declare const GEMINI_3_1_FLASH_LITE_IMAGE = "gemini-3.1-flash-lite-image";
|
|
80
|
+
declare const GEMINI_3_PRO_IMAGE = "gemini-3-pro-image";
|
|
81
|
+
declare const GEMINI_3_PRO_IMAGE_PREVIEW = "gemini-3-pro-image-preview";
|
|
82
|
+
declare const IMAGEN_4_GENERATE = "imagen-4.0-generate-001";
|
|
83
|
+
|
|
104
84
|
declare const index_GEMINI_2_5_FLASH_IMAGE: typeof GEMINI_2_5_FLASH_IMAGE;
|
|
85
|
+
declare const index_GEMINI_3_1_FLASH_IMAGE: typeof GEMINI_3_1_FLASH_IMAGE;
|
|
86
|
+
declare const index_GEMINI_3_1_FLASH_LITE_IMAGE: typeof GEMINI_3_1_FLASH_LITE_IMAGE;
|
|
87
|
+
declare const index_GEMINI_3_PRO_IMAGE: typeof GEMINI_3_PRO_IMAGE;
|
|
105
88
|
declare const index_GEMINI_3_PRO_IMAGE_PREVIEW: typeof GEMINI_3_PRO_IMAGE_PREVIEW;
|
|
106
89
|
type index_GeminiClient = GeminiClient;
|
|
107
90
|
declare const index_GeminiClient: typeof GeminiClient;
|
|
108
91
|
type index_GeminiClientOptions = GeminiClientOptions;
|
|
109
|
-
type
|
|
110
|
-
|
|
111
|
-
type
|
|
112
|
-
type
|
|
113
|
-
|
|
114
|
-
type index_GeminiEmbeddingModelName = GeminiEmbeddingModelName;
|
|
92
|
+
type index_GeminiCompletionModelHandle = GeminiCompletionModelHandle;
|
|
93
|
+
type index_GeminiCompletionModelId = GeminiCompletionModelId;
|
|
94
|
+
type index_GeminiCompletionModelOptions = GeminiCompletionModelOptions;
|
|
95
|
+
type index_GeminiEmbeddingModelHandle = GeminiEmbeddingModelHandle;
|
|
96
|
+
type index_GeminiEmbeddingModelId = GeminiEmbeddingModelId;
|
|
115
97
|
type index_GeminiEmbeddingModelOptions = GeminiEmbeddingModelOptions;
|
|
116
98
|
type index_GeminiEmbeddingTaskType = GeminiEmbeddingTaskType;
|
|
117
|
-
type
|
|
118
|
-
|
|
119
|
-
type
|
|
120
|
-
type
|
|
121
|
-
|
|
122
|
-
type
|
|
123
|
-
|
|
124
|
-
type index_GeminiTranscriptionModelName = GeminiTranscriptionModelName;
|
|
99
|
+
type index_GeminiGenerateContentImageModelId = GeminiGenerateContentImageModelId;
|
|
100
|
+
type index_GeminiGenerateImagesModelId = GeminiGenerateImagesModelId;
|
|
101
|
+
type index_GeminiImageGenerationModelHandle = GeminiImageGenerationModelHandle;
|
|
102
|
+
type index_GeminiImageGenerationModelOptions = GeminiImageGenerationModelOptions;
|
|
103
|
+
type index_GeminiTranscriptionModelHandle = GeminiTranscriptionModelHandle;
|
|
104
|
+
type index_GeminiTranscriptionModelId = GeminiTranscriptionModelId;
|
|
105
|
+
type index_GeminiTranscriptionModelOptions = GeminiTranscriptionModelOptions;
|
|
125
106
|
declare const index_IMAGEN_4_GENERATE: typeof IMAGEN_4_GENERATE;
|
|
126
|
-
type
|
|
127
|
-
type
|
|
128
|
-
type
|
|
107
|
+
type index_KnownGeminiCompletionModelId = KnownGeminiCompletionModelId;
|
|
108
|
+
type index_KnownGeminiEmbeddingModelId = KnownGeminiEmbeddingModelId;
|
|
109
|
+
type index_KnownGeminiGenerateContentImageModelId = KnownGeminiGenerateContentImageModelId;
|
|
110
|
+
type index_KnownGeminiGenerateImagesModelId = KnownGeminiGenerateImagesModelId;
|
|
129
111
|
declare namespace index {
|
|
130
|
-
export { index_GEMINI_2_5_FLASH_IMAGE as GEMINI_2_5_FLASH_IMAGE, index_GEMINI_3_PRO_IMAGE_PREVIEW as GEMINI_3_PRO_IMAGE_PREVIEW, index_GeminiClient as GeminiClient, type index_GeminiClientOptions as GeminiClientOptions,
|
|
112
|
+
export { index_GEMINI_2_5_FLASH_IMAGE as GEMINI_2_5_FLASH_IMAGE, index_GEMINI_3_1_FLASH_IMAGE as GEMINI_3_1_FLASH_IMAGE, index_GEMINI_3_1_FLASH_LITE_IMAGE as GEMINI_3_1_FLASH_LITE_IMAGE, index_GEMINI_3_PRO_IMAGE as GEMINI_3_PRO_IMAGE, index_GEMINI_3_PRO_IMAGE_PREVIEW as GEMINI_3_PRO_IMAGE_PREVIEW, index_GeminiClient as GeminiClient, type index_GeminiClientOptions as GeminiClientOptions, type index_GeminiCompletionModelHandle as GeminiCompletionModelHandle, type index_GeminiCompletionModelId as GeminiCompletionModelId, type index_GeminiCompletionModelOptions as GeminiCompletionModelOptions, type index_GeminiEmbeddingModelHandle as GeminiEmbeddingModelHandle, type index_GeminiEmbeddingModelId as GeminiEmbeddingModelId, type index_GeminiEmbeddingModelOptions as GeminiEmbeddingModelOptions, type index_GeminiEmbeddingTaskType as GeminiEmbeddingTaskType, type index_GeminiGenerateContentImageModelId as GeminiGenerateContentImageModelId, type index_GeminiGenerateImagesModelId as GeminiGenerateImagesModelId, type index_GeminiImageGenerationModelHandle as GeminiImageGenerationModelHandle, type index_GeminiImageGenerationModelOptions as GeminiImageGenerationModelOptions, type index_GeminiTranscriptionModelHandle as GeminiTranscriptionModelHandle, type index_GeminiTranscriptionModelId as GeminiTranscriptionModelId, type index_GeminiTranscriptionModelOptions as GeminiTranscriptionModelOptions, index_IMAGEN_4_GENERATE as IMAGEN_4_GENERATE, type index_KnownGeminiCompletionModelId as KnownGeminiCompletionModelId, type index_KnownGeminiEmbeddingModelId as KnownGeminiEmbeddingModelId, type index_KnownGeminiGenerateContentImageModelId as KnownGeminiGenerateContentImageModelId, type index_KnownGeminiGenerateImagesModelId as KnownGeminiGenerateImagesModelId };
|
|
131
113
|
}
|
|
132
114
|
|
|
133
|
-
export { GEMINI_2_5_FLASH_IMAGE, GEMINI_3_PRO_IMAGE_PREVIEW, GeminiClient, type GeminiClientOptions,
|
|
115
|
+
export { GEMINI_2_5_FLASH_IMAGE, GEMINI_3_1_FLASH_IMAGE, GEMINI_3_1_FLASH_LITE_IMAGE, GEMINI_3_PRO_IMAGE, GEMINI_3_PRO_IMAGE_PREVIEW, GeminiClient, type GeminiClientOptions, type GeminiCompletionModelHandle, type GeminiCompletionModelId, type GeminiCompletionModelOptions, type GeminiEmbeddingModelHandle, type GeminiEmbeddingModelId, type GeminiEmbeddingModelOptions, type GeminiEmbeddingTaskType, type GeminiGenerateContentImageModelId, type GeminiGenerateImagesModelId, type GeminiImageGenerationModelHandle, type GeminiImageGenerationModelOptions, type GeminiTranscriptionModelHandle, type GeminiTranscriptionModelId, type GeminiTranscriptionModelOptions, IMAGEN_4_GENERATE, type KnownGeminiCompletionModelId, type KnownGeminiEmbeddingModelId, type KnownGeminiGenerateContentImageModelId, type KnownGeminiGenerateImagesModelId, index as gemini };
|