chore: cleanup

This commit is contained in:
Abhishek Kumar 2026-03-09 22:35:40 +05:30
parent 226b4cff91
commit 96e12ccc01

View file

@ -53,9 +53,7 @@ class BaseServiceConfiguration(BaseModel):
if name == "api_key":
value = super().__getattribute__(name)
if isinstance(value, list):
selected_api_key = random.choice(value)
logger.debug(f"selected API key {selected_api_key[:-4]}")
return selected_api_key
return random.choice(value)
return value
return super().__getattribute__(name)