@app.onevent("startup") WARNING: You must pass the application as an import string to…
- User
@app.on_event("startup") WARNING: You must pass the application as an import string to enable 'reload' or 'workers'. PS C:\Users\Soltel\Documents\GitHub\ADA_frontend>
Assistant
It looks like you're trying to run a FastAPI application and getting a warning about how to properly enable reload or workers functionality.
This warning appears when you're running uvicorn directly with the app object instead of using an import string. To fix this, you should run your application like this:
bashuvicorn main:app --reloadOr if your file has a different name:
bashuvicorn filename:app --reloadWhere:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.