Skip to content

Commit

Permalink
fix(js/plugins/vertexai): corrected plugin names
Browse files Browse the repository at this point in the history
  • Loading branch information
CorieW committed Oct 11, 2024
1 parent a5b9408 commit 7eb223e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions js/plugins/vertexai/src/model-garden/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const AnthropicConfigSchema = GenerationCommonConfigSchema.extend({
});

export const claude35Sonnet = modelRef({
name: 'vertexai/claude-3-5-sonnet',
name: 'vertexaiModelGarden/claude-3-5-sonnet',
info: {
label: 'Vertex AI Model Garden - Claude 3.5 Sonnet',
versions: ['claude-3-5-sonnet@20240620'],
Expand All @@ -67,7 +67,7 @@ export const claude35Sonnet = modelRef({
});

export const claude3Sonnet = modelRef({
name: 'vertexai/claude-3-sonnet',
name: 'vertexaiModelGarden/claude-3-sonnet',
info: {
label: 'Vertex AI Model Garden - Claude 3 Sonnet',
versions: ['claude-3-sonnet@20240229'],
Expand All @@ -83,7 +83,7 @@ export const claude3Sonnet = modelRef({
});

export const claude3Haiku = modelRef({
name: 'vertexai/claude-3-haiku',
name: 'vertexaiModelGarden/claude-3-haiku',
info: {
label: 'Vertex AI Model Garden - Claude 3 Haiku',
versions: ['claude-3-haiku@20240307'],
Expand All @@ -99,7 +99,7 @@ export const claude3Haiku = modelRef({
});

export const claude3Opus = modelRef({
name: 'vertexai/claude-3-opus',
name: 'vertexaiModelGarden/claude-3-opus',
info: {
label: 'Vertex AI Model Garden - Claude 3 Opus',
versions: ['claude-3-opus@20240229'],
Expand Down
4 changes: 1 addition & 3 deletions js/plugins/vertexai/src/model-garden/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ export interface PluginOptions extends BasePluginOptions {
openAiBaseUrlTemplate?: string;
}

const PLUGIN_NAME = 'vertexAiModelGarden';

/**
* Plugin for Vertex AI Model Garden
*/
export const vertexAIModelGarden: Plugin<[PluginOptions] | []> = genkitPlugin(
PLUGIN_NAME,
'vertexaiModelGarden',
async (options?: PluginOptions) => {
// Authenticate with Google Cloud
const authOptions = options?.googleAuth;
Expand Down
6 changes: 3 additions & 3 deletions js/plugins/vertexai/src/model-garden/model_garden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ModelGardenModelConfigSchema = OpenAIConfigSchema.extend({
});

export const llama31 = modelRef({
name: 'vertexai/llama-3.1',
name: 'vertexaiModelGarden/llama-3.1',
info: {
label: 'Llama 3.1',
supports: {
Expand All @@ -48,7 +48,7 @@ export const llama31 = modelRef({
});

export const llama32 = modelRef({
name: 'vertexai/llama-3.2',
name: 'vertexaiModelGarden/llama-3.2',
info: {
label: 'Llama 3.2',
supports: {
Expand All @@ -68,7 +68,7 @@ export const llama32 = modelRef({
* @deprecated use `llama31` instead
*/
export const llama3 = modelRef({
name: 'vertexai/llama3-405b',
name: 'vertexaiModelGarden/llama3-405b',
info: {
label: 'Llama 3.1 405b',
supports: {
Expand Down

0 comments on commit 7eb223e

Please sign in to comment.