GoogleCloudPlatform / GoogleCloudPlatform/Open_Data_QnA

HarmBlockThreshold.BLOCK_NONE breaks embeddings creation

Open
#32 3 comments 0 reactions 1 assignee Claimed by @orpzs View on GitHub
bug
Dominant language
Dart
Stars
233
Forks
74
PR merge metrics
No merged PRs in 30d

Description

When running `python env_setup.py` (either v1 or v2), the flow stops due to the following error:

> google.api_core.exceptions.InvalidArgument: 400 User has requested a restricted HarmBlockThreshold setting BLOCK_NONE. You can get access either (a) through an allowlist via your Google account team, or (b) by switching your account type to monthly invoiced billing via this instruction: https://cloud.google.com/billing/docs/how-to/invoiced-billing.

This can be resolved by setting `HarmBlockThreshold.BLOCK_MEDIUM_AND_ABOVE` but should either be avoided or allow to be configured.

Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.