Path to service account key file

Anyone figured out the key_path value setting in the RLHF course where you create credentials in Vertex AI?
Where it says ‘Path to your service account key file’, I get the error ‘No such file or directory’ for my key_path setting.

Hi @kman3jc

Welcome to the community.

Are you trying to run the lab locally. If so, you have to set up your credentials by your own.

Best regards

Hey thanks.
No, not locally - I’m doing a cloud setup.
Service account and key created, got the json file.

Got to provide a Google cloud path - the key_path

Oh, Ok.

The key_path it is a envirioment variable but it is only related to our platform. You have to set up your envirioment variable or hardcode your API keys

1 Like