mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-19 22:03:48 -04:00
Issue with Playground Rendering After Updating Langserve Version #233
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @estebancatano on GitHub (Sep 27, 2024).
Originally assigned to: @eyurtsev on GitHub.
I updated my langserve version from 0.2.3 to 0.3.0, and I'm experiencing an issue.
If I pass
config_keys=("run_id", "configurable", "metadata")as a parameter in theadd_routesmethod, the playground is not displayed correctly.This sample code also produces the error:
add_routes(app,ChatOpenAI(model="gpt-4o-2024-08-06"),path="/openai",config_keys=("run_id", "configurable", "metadata"),)The key
run_idmay be causing the error because if I remove it, it does render, but a warning appears for themetadatakey.The installed versions is as follows:
@nicho2 commented on GitHub (Oct 2, 2024):
I obtain this too

@eyurtsev commented on GitHub (Oct 2, 2024):
Thanks for reporting. I'll need to investigate
@fhkingma commented on GitHub (Oct 6, 2024):
Any pre-lim results from the investigation? Any way we can assist?
We have to upgrade to pydantic>=2.0.0 based on a business requirement, and would like to understand if we can hack our way around this to enable the playground again, until a fix is released.
@eyurtsev commented on GitHub (Nov 5, 2024):
This looks like a bug with the version of jsonforms used in the UI. I tried upgrading to a newer version but but it looks like there were some breaking changes in the library. If anyone is interested in taking a look and submitting a PR that can help unblock this.