We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af94e53 commit b14e53cCopy full SHA for b14e53c
google/genai/_api_client.py
@@ -704,9 +704,9 @@ def __init__(
704
else: # Implicit initialization or missing arguments.
705
if not self.api_key:
706
raise ValueError(
707
- 'Missing key inputs argument! To use the Google AI API,'
708
- ' provide (`api_key`) arguments. To use the Google Cloud API,'
709
- ' provide (`vertexai`, `project` & `location`) arguments.'
+ 'No API key was provided. Please pass a valid API key. Learn how to'
+ ' create an API key at'
+ ' https://ai.google.dev/gemini-api/docs/api-key.'
710
)
711
self._http_options.base_url = 'https://generativelanguage.googleapis.com/'
712
self._http_options.api_version = 'v1beta'
0 commit comments