Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -16,7 +16,7 @@ import asyncio
|
|
16 |
app = FastAPI()
|
17 |
|
18 |
API_KEY_NAME = "X-API-Key"
|
19 |
-
API_KEY = os.environ.get("
|
20 |
api_key_header = APIKeyHeader(name=API_KEY_NAME, auto_error=False)
|
21 |
|
22 |
ModelID = Literal[
|
|
|
16 |
app = FastAPI()
|
17 |
|
18 |
API_KEY_NAME = "X-API-Key"
|
19 |
+
API_KEY = os.environ.get("CHAT_AUTH_KEY", "default_secret_key")
|
20 |
api_key_header = APIKeyHeader(name=API_KEY_NAME, auto_error=False)
|
21 |
|
22 |
ModelID = Literal[
|