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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ describe("registerGoogleVertexProvider", () => {
error: {
code: "google_cloud_auth_expired",
message:
"Google Cloud authentication expired or is unavailable. Reconnect Google Cloud auth in Positron, then click Refresh Models.",
"Google Cloud authentication expired or is unavailable. Reconnect Google Cloud auth in Positron, then click Reload model list.",
action: {
label: "Refresh Models",
label: "Reload model list",
commandId: "refresh-models",
},
},
Expand Down
8 changes: 4 additions & 4 deletions packages/ai-provider-bridge/src/providers/bedrock-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async function notifyBedrockAuthError(
code,
message,
action: {
label: "Refresh Models",
label: "Reload model list",
commandId: NOTIFICATION_ACTIONS.REFRESH_MODELS,
},
},
Expand All @@ -182,7 +182,7 @@ async function reportCredentialResolutionFailure(
providerId,
callbacks,
"sso_expired",
"AWS Bedrock credentials expired. Please run 'aws sso login' to refresh your session, then click Refresh Models. You may need additional options, like 'aws sso login --profile <profile-name>'.",
"AWS Bedrock credentials expired. Please run 'aws sso login' to refresh your session, then click Reload model list. You may need additional options, like 'aws sso login --profile <profile-name>'.",
);
return;
}
Expand All @@ -192,7 +192,7 @@ async function reportCredentialResolutionFailure(
providerId,
callbacks,
"auth_error",
"AWS Bedrock credentials are invalid or unavailable. Update your AWS credentials, then click Refresh Models.",
"AWS Bedrock credentials are invalid or unavailable. Update your AWS credentials, then click Reload model list.",
);
}

Expand Down Expand Up @@ -425,7 +425,7 @@ function createBedrockModelFetcher(
providerId,
callbacks,
"auth_error",
"AWS Bedrock credentials were rejected by the API. Check your IAM permissions, then click Refresh Models.",
"AWS Bedrock credentials were rejected by the API. Check your IAM permissions, then click Reload model list.",
);

cachedModels = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ function createGoogleVertexModelFetcher(
if (isAuthError(error)) {
const isBrokeredAuth = Boolean(credentials.accessToken);
const authMessage = isBrokeredAuth
? "Google Cloud authentication expired or is unavailable. Reconnect Google Cloud auth in Positron, then click Refresh Models."
: "Google Cloud credentials expired or missing. Run 'gcloud auth application-default login' to refresh, then click Refresh Models.";
? "Google Cloud authentication expired or is unavailable. Reconnect Google Cloud auth in Positron, then click Reload model list."
: "Google Cloud credentials expired or missing. Run 'gcloud auth application-default login' to refresh, then click Reload model list.";
logger.error(`[GoogleVertex] ${authMessage} Error: ${errorMsg}`);

await callbacks?.onProviderStatusChange?.({
Expand All @@ -357,7 +357,7 @@ function createGoogleVertexModelFetcher(
code: isBrokeredAuth ? "google_cloud_auth_expired" : "adc_expired",
message: authMessage,
action: {
label: "Refresh Models",
label: "Reload model list",
commandId: NOTIFICATION_ACTIONS.REFRESH_MODELS,
},
},
Expand Down
Loading