RedInk icon indicating copy to clipboard operation
RedInk copied to clipboard

配置 google 这个错,有大佬指点一下么

Open NuoLanC opened this issue 11 months ago • 5 comments

❌ 连接失败:401 UNAUTHENTICATED. {'error': {'code': 401, 'message': 'API keys are not supported by this API. Expected OAuth2 access token or other authentication credentials that assert a principal. See https://cloud.google.com/docs/authentication', 'status': 'UNAUTHENTICATED', 'details': [{'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'CREDENTIALS_MISSING', 'domain': 'googleapis.com', 'metadata': {'method': 'google.cloud.aiplatform.v1beta1.PredictionService.GenerateContent', 'service': 'aiplatform.googleapis.com'}}]}}

NuoLanC avatar Dec 05 '25 10:12 NuoLanC

在 ai studio 申请一个使用是 ok 的 @NuoLanC

Image

0RAJA avatar Dec 06 '25 08:12 0RAJA

❌ 连接失败:401 UNAUTHENTICATED. {'error': {'code': 401, 'message': 'API keys are not supported by this API. Expected OAuth2 access token or other authentication credentials that assert a principal. See https://cloud.google.com/docs/authentication', 'status': 'UNAUTHENTICATED', 'details': [{'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'CREDENTIALS_MISSING', 'domain': 'googleapis.com', 'metadata': {'method': 'google.cloud.aiplatform.v1beta1.PredictionService.GenerateContent', 'service': 'aiplatform.googleapis.com'}}]}}

一样的问题……

mefoxmefox avatar Dec 06 '25 09:12 mefoxmefox

好的,解决了。谢谢

NuoLanC avatar Dec 06 '25 11:12 NuoLanC

好的,解决了。谢谢

请教下,怎么解决的呀?谢谢

mefoxmefox avatar Dec 06 '25 12:12 mefoxmefox

有相同问题的同学请查阅 Google Vertex 文档,选用体验或免费层级创建API Key (目前不打算支持谷歌OAuth2认证的)

不过,昨天谷歌砍了免费额度,尽量还是选用中转站吧。

who have the same issue, please refer to the Google Vertex documentation. However, Google cut the free quota last night, so it's better to use the transfer station instead.

Image

HisMax avatar Dec 07 '25 07:12 HisMax