mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-10 08:05:22 +02:00
chore: cleanup
This commit is contained in:
parent
226b4cff91
commit
96e12ccc01
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue