Skip to content

Commit 39ddc45

Browse files
committed
Add missing if self.verbose:
1 parent e1fa953 commit 39ddc45

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

operate/config.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ def initialize_google(self):
6262
print("[Config][initialize_google] using cached google_api_key")
6363
api_key = self.google_api_key
6464
else:
65-
print(
66-
"[Config][initialize_google] no cached google_api_key, try to get from env."
67-
)
65+
if self.verbose:
66+
print(
67+
"[Config][initialize_google] no cached google_api_key, try to get from env."
68+
)
6869
api_key = os.getenv("GOOGLE_API_KEY")
6970
genai.configure(api_key=api_key, transport="rest")
7071
model = genai.GenerativeModel("gemini-pro-vision")

0 commit comments

Comments
 (0)