autogen
or ag2
, all you need to do is upgrade it using:autogen
and ag2
are aliases for the same PyPI package.ag2-with-gemini
project.chmod 600 ag2-with-gemini-service-account-key.json
if your keyfile is called ag2-with-gemini-service-account-key.json.Credentials
objects in Python with the google-auth library, which enables even more flexibility.GOOGLE_APPLICATION_CREDENTIALS
environment variable to the path to the JSON key file of the service account. "google_application_credentials"
key with the respective value for our model in the OAI_CONFIG_LIST.
gcloud auth application-default login
in the command line.
Detailed instructions for installing the Google Cloud SDK can be found here.
Credentials
object to the llm_config
.gcloud auth application-default login
command in a CLI, then the google.auth.default()
Python method will automatically return your currently active credentials.
project_id
and google_application_credentials
):
Credentials
will be supplied in order to authenticate.GOOGLE_APPLICATION_CREDENTIALS
environment variable is a path to our service account JSON keyfile, as described in the Use Service Account Keyfile section above.ag2-with-gemini
in this example.gcloud auth application-default login
to use our personal Google account instead of a service account.
In this case we need to run the following commands:
openai
package to do this.gcloud auth application-default login
to set up application default credentials locally for the example below.