From 2a62f2b21da5164c45a0ec0bee7f870a27ada282 Mon Sep 17 00:00:00 2001 From: GdoongMathew Date: Mon, 27 Jul 2026 16:53:26 +0800 Subject: [PATCH] removing logging api key in logger. --- api/clients/openrouter.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/api/clients/openrouter.py b/api/clients/openrouter.py index b71c47744..d37d27f89 100644 --- a/api/clients/openrouter.py +++ b/api/clients/openrouter.py @@ -1,18 +1,17 @@ """OpenRouter ModelClient integration.""" -from typing import Dict, Sequence, Optional, Any, List -import logging import json -import aiohttp -import requests -from requests.exceptions import RequestException, Timeout +import logging +from typing import Any, Dict +import aiohttp from adalflow.core.model_client import ModelClient from adalflow.core.types import ( CompletionUsage, - ModelType, GeneratorOutput, + ModelType, ) +from requests.exceptions import RequestException log = logging.getLogger(__name__) @@ -141,7 +140,6 @@ async def error_generator(): # Make the API call try: log.info(f"Making async OpenRouter API call to {self.async_client['base_url']}/chat/completions") - log.info(f"Request headers: {headers}") log.info(f"Request body: {api_kwargs}") async with aiohttp.ClientSession() as session: