ausername-12345 commited on
Commit ·
d6ecf4e
1
Parent(s): cfe2661
back to KeylessAI (completions.me 401)
Browse files
app.py
CHANGED
|
@@ -163,9 +163,9 @@ async def validation_handler(request: Request, exc: RequestValidationError):
|
|
| 163 |
print(f"Errors: {exc.errors()}")
|
| 164 |
return JSONResponse(status_code=422, content={"detail": exc.errors()})
|
| 165 |
|
| 166 |
-
INFERENCE_PORT_API_KEY = os.environ.get("INFERENCE_PORT_API_KEY", "
|
| 167 |
-
INFERENCE_PORT_URL = "https://
|
| 168 |
-
MODEL = "gpt-
|
| 169 |
|
| 170 |
_history = []
|
| 171 |
MAX_HISTORY = 20
|
|
|
|
| 163 |
print(f"Errors: {exc.errors()}")
|
| 164 |
return JSONResponse(status_code=422, content={"detail": exc.errors()})
|
| 165 |
|
| 166 |
+
INFERENCE_PORT_API_KEY = os.environ.get("INFERENCE_PORT_API_KEY", "")
|
| 167 |
+
INFERENCE_PORT_URL = "https://keylessai.thryx.workers.dev/v1/chat/completions"
|
| 168 |
+
MODEL = "gpt-4o"
|
| 169 |
|
| 170 |
_history = []
|
| 171 |
MAX_HISTORY = 20
|