Update app.py
Browse files
app.py
CHANGED
@@ -91,9 +91,9 @@ class ModelName(str, Enum):
|
|
91 |
|
92 |
@app.post("/open-router")
|
93 |
async def open_router(
|
|
|
94 |
model: ModelName = Query(..., description="Select a model"),
|
95 |
-
prompt: str = Query(..., description="Enter your prompt")
|
96 |
-
token: Annotated[str, Depends(verify_token)]
|
97 |
):
|
98 |
async with httpx.AsyncClient() as client:
|
99 |
response = await client.post(
|
|
|
91 |
|
92 |
@app.post("/open-router")
|
93 |
async def open_router(
|
94 |
+
token: Annotated[str, Depends(verify_token)],
|
95 |
model: ModelName = Query(..., description="Select a model"),
|
96 |
+
prompt: str = Query(..., description="Enter your prompt")
|
|
|
97 |
):
|
98 |
async with httpx.AsyncClient() as client:
|
99 |
response = await client.post(
|