Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions js/plugins/googleai/src/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export const gemini25ProPreview0325 = modelRef({
configSchema: GeminiConfigSchema,
});

export const SUPPORTED_V1_MODELS = {
const SUPPORTED_V1_MODELS = {
'gemini-1.0-pro': gemini10Pro,
};

Expand Down Expand Up @@ -366,7 +366,6 @@ export const GENERIC_GEMINI_MODEL = modelRef({
});

export const SUPPORTED_GEMINI_MODELS = {
...SUPPORTED_V1_MODELS,
...SUPPORTED_V15_MODELS,
} as const;

Expand Down
11 changes: 0 additions & 11 deletions js/plugins/googleai/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ import {
gemini25ProPreview0325,
GeminiConfigSchema,
SUPPORTED_V15_MODELS,
SUPPORTED_V1_MODELS,
type GeminiConfig,
type GeminiVersionString,
} from './gemini.js';
Expand Down Expand Up @@ -121,16 +120,6 @@ async function initializer(ai: Genkit, options?: PluginOptions) {
);
}
if (apiVersions.includes('v1')) {
Object.keys(SUPPORTED_V1_MODELS).forEach((name) =>
defineGoogleAIModel({
ai,
name,
apiKey: options?.apiKey,
apiVersion: undefined,
baseUrl: options?.baseUrl,
debugTraces: options?.experimental_debugTraces,
})
);
Object.keys(SUPPORTED_V15_MODELS).forEach((name) =>
defineGoogleAIModel({
ai,
Expand Down
3 changes: 1 addition & 2 deletions js/plugins/vertexai/src/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ export const GENERIC_GEMINI_MODEL = modelRef({
},
});

export const SUPPORTED_V1_MODELS = {
const SUPPORTED_V1_MODELS = {
'gemini-1.0-pro': gemini10Pro,
};

Expand All @@ -586,7 +586,6 @@ export const SUPPORTED_V15_MODELS = {
};

export const SUPPORTED_GEMINI_MODELS = {
...SUPPORTED_V1_MODELS,
...SUPPORTED_V15_MODELS,
} as const;

Expand Down