When I try to load data into Data Formulator, the server returns a 500 error with stack trace showing KeyError: 'model'. It seems that the API call to /api/agent/process-data-on-load misses the 'model' key in the payload.
Environment:
- Python version: 3.11
- OS: Windows 11
- Installed via pip
Steps to reproduce:
- Run command
data_formulator
- Load a CSV or Excel file
- Perform data processing triggering API call /api/agent/process-data-on-load
- Observe the error in server logs
Log excerpt:
Traceback (most recent call last):
File ".../agent_routes.py", line 181, in process_data_on_load_request
client = get_client(content['model'])
KeyError: 'model'
Please advise on how to fix or if this is a bug.