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'
pull/17270/head
Schalkje 5 months ago committed by GitHub
parent 1862900078
commit f0ada1a396
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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).

Loading…
Cancel
Save