(request: Request)
| 214 | |
| 215 | @app.post("/") |
| 216 | async def compat_generate(request: Request) -> Response: |
| 217 | request_dict = await request.json() |
| 218 | stream = request_dict.pop("stream", False) |
| 219 | if stream: |
| 220 | return await generate_stream(request) |
| 221 | else: |
| 222 | return await generate(request) |
| 223 | |
| 224 | |
| 225 | @app.post("/v1/chat/completions", response_model=ChatCompletionResponse) |
nothing calls this directly
no test coverage detected