diff --git a/lib.py b/lib.py index 29cd6a8..7b2a783 100644 --- a/lib.py +++ b/lib.py @@ -39,12 +39,9 @@ def get_credentials(): # Try to load credentials from JSON content directly credentials_json = os.getenv("GOOGLE_CREDENTIALS_JSON") - logger.info(f"creds JSON: {credentials_json}") - if credentials_json: try: credentials_info = json.loads(credentials_json) - logger.info(f"creds JSON parsed: {credentials_info}") project_id = credentials_info.get("project_id") credentials = service_account.Credentials.from_service_account_info( @@ -57,8 +54,6 @@ def get_credentials(): # Fall back to file-based credentials (standard behavior) credentials_path = os.getenv("GOOGLE_APPLICATION_CREDENTIALS") - logger.info(f"creds path: {credentials_path}") - if credentials_path and os.path.exists(credentials_path): with open(credentials_path) as f: credentials_info = json.load(f) @@ -102,9 +97,6 @@ async def generate(prompt: str): try: credentials, project_id = get_credentials() - logger.info(f"credentials: {credentials}") - logger.info(f"project_id: {project_id}") - client = genai.Client( vertexai=True, credentials=credentials,