配置 google 这个错,有大佬指点一下么
❌ 连接失败: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'}}]}}
在 ai studio 申请一个使用是 ok 的 @NuoLanC
❌ 连接失败: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'}}]}}
一样的问题……
好的,解决了。谢谢
好的,解决了。谢谢
请教下,怎么解决的呀?谢谢
有相同问题的同学请查阅 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.