LangChain - Production Deployment
Identify the error in this FastAPI route integrating LangChain:
```python
@app.post('/chat')
async def chat(request):
data = await request.json()
response = await langchain_model.run(data['message'])
return {'reply': response}
```
