We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if self.verbose:
1 parent e1fa953 commit 39ddc45Copy full SHA for 39ddc45
operate/config.py
@@ -62,9 +62,10 @@ def initialize_google(self):
62
print("[Config][initialize_google] using cached google_api_key")
63
api_key = self.google_api_key
64
else:
65
- print(
66
- "[Config][initialize_google] no cached google_api_key, try to get from env."
67
- )
+ if self.verbose:
+ print(
+ "[Config][initialize_google] no cached google_api_key, try to get from env."
68
+ )
69
api_key = os.getenv("GOOGLE_API_KEY")
70
genai.configure(api_key=api_key, transport="rest")
71
model = genai.GenerativeModel("gemini-pro-vision")
0 commit comments