mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 23:00:00 +00:00
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:
parent
1862900078
commit
f0ada1a396
@ -581,7 +581,10 @@ Using this, we can interact with the served chain as if it were running client-s
|
|||||||
from langserve import RemoteRunnable
|
from langserve import RemoteRunnable
|
||||||
|
|
||||||
remote_chain = RemoteRunnable("http://localhost:8000/agent/")
|
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).
|
To learn more about the many other features of LangServe [head here](/docs/langserve).
|
||||||
|
Loading…
Reference in New Issue
Block a user