fix issue to read vertex_credentials
This commit is contained in:
parent
056913fd70
commit
17b104eb02
@ -237,7 +237,7 @@ def completion(
|
||||
if vertex_credentials is not None and isinstance(vertex_credentials, str):
|
||||
import google.oauth2.service_account
|
||||
|
||||
json_obj = json.loads(vertex_credentials)
|
||||
json_obj = json.load(open(vertex_credentials))
|
||||
|
||||
creds = (
|
||||
google.oauth2.service_account.Credentials.from_service_account_info(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user