docs: Update quickstart.mdx - Fix 422 error in example with LangServe client code (#17163)

**Description:**: Fix 422 error in example with LangServe client code

httpx.HTTPStatusError: Client error '422 Unprocessable Entity' for url
'http://localhost:8000/agent/invoke'
This commit is contained in:
Schalkje 2024-02-08 22:35:39 +01:00 committed by GitHub
parent 1862900078
commit f0ada1a396
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -581,7 +581,10 @@ Using this, we can interact with the served chain as if it were running client-s
from langserve import RemoteRunnable
remote_chain = RemoteRunnable("http://localhost:8000/agent/")
remote_chain.invoke({"input": "how can langsmith help with testing?"})
remote_chain.invoke({
"input": "how can langsmith help with testing?",
"chat_history": [] # Providing an empty list as this is the first call
})
```
To learn more about the many other features of LangServe [head here](/docs/langserve).