Fix flake8 F824 errors - remove unused global declarations
Remove unnecessary global declarations for MODEL_CLIENT_MAP that are never reassigned
This commit is contained in:
parent
22db7a9a8a
commit
39e39e80f1
2 changed files with 1 additions and 3 deletions
2
app.py
2
app.py
|
|
@ -88,7 +88,7 @@ def get_client_for_endpoint(endpoint, api_key):
|
|||
|
||||
|
||||
def initialize_model_map():
|
||||
global MODEL_CLIENT_MAP, SYSTEM_USERS
|
||||
global SYSTEM_USERS
|
||||
MODEL_CLIENT_MAP.clear()
|
||||
for ep_config in ENDPOINTS:
|
||||
base_url = ep_config["base_url"]
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@ def get_client_for_endpoint(endpoint, api_key):
|
|||
|
||||
def initialize_model_map():
|
||||
"""Initialize the model-client mapping from environment variables"""
|
||||
global MODEL_CLIENT_MAP
|
||||
|
||||
# Load endpoints from environment variables
|
||||
for i in range(1000): # Support up to 1000 endpoints
|
||||
endpoint_key = f"MODEL_ENDPOINT_{i}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue