You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most endpoints use the following kind of logic to ensure the app does not break if the package is not installed:
let BedrockRuntimeClient, InvokeModelWithResponseStreamCommand;
try {
({ BedrockRuntimeClient, InvokeModelWithResponseStreamCommand } = await import(
"@aws-sdk/client-bedrock-runtime"
));
} catch (error) {
throw new Error("Failed to import @aws-sdk/client-bedrock-runtime. Make sure it's installed.");
}
The only exceptions are the GenAI and Vertex endpoints under endpoints/google
This is because of the HarmBlockThreshold enum which is used in our zod schema used to validate the endpoint definition. Not sure what the best way is to deal with this, could we just hardcode the values?
The text was updated successfully, but these errors were encountered:
Most endpoints use the following kind of logic to ensure the app does not break if the package is not installed:
The only exceptions are the GenAI and Vertex endpoints under
endpoints/google
This is because of the
HarmBlockThreshold
enum which is used in our zod schema used to validate the endpoint definition. Not sure what the best way is to deal with this, could we just hardcode the values?The text was updated successfully, but these errors were encountered: