Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -99,7 +99,7 @@ app = FastAPI()
|
|
99 |
app.add_middleware(RateLimitMiddleware, requests_per_second=2)
|
100 |
|
101 |
# Get API keys and secret endpoint from environment variables
|
102 |
-
valid_api_keys = api_keys_str.split(',') if api_keys_str else []
|
103 |
secret_api_endpoint = os.getenv('SECRET_API_ENDPOINT')
|
104 |
secret_api_endpoint_2 = os.getenv('SECRET_API_ENDPOINT_2')
|
105 |
secret_api_endpoint_3 = os.getenv('SECRET_API_ENDPOINT_3') # New endpoint for searchgpt
|
|
|
99 |
app.add_middleware(RateLimitMiddleware, requests_per_second=2)
|
100 |
|
101 |
# Get API keys and secret endpoint from environment variables
|
102 |
+
# valid_api_keys = api_keys_str.split(',') if api_keys_str else []
|
103 |
secret_api_endpoint = os.getenv('SECRET_API_ENDPOINT')
|
104 |
secret_api_endpoint_2 = os.getenv('SECRET_API_ENDPOINT_2')
|
105 |
secret_api_endpoint_3 = os.getenv('SECRET_API_ENDPOINT_3') # New endpoint for searchgpt
|