Issue with Playground Rendering After Updating Langserve Version #233

Open
opened 2026-02-16 00:19:41 -05:00 by yindo · 4 comments
Owner

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 the add_routes method, the playground is not displayed correctly.

image

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_id may be causing the error because if I remove it, it does render, but a warning appears for the metadata key.

image

The installed versions is as follows:

  • langchain-openai 0.2.1
  • langserve 0.3.0
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 the `add_routes` method, the playground is not displayed correctly. <img width="1367" alt="image" src="https://github.com/user-attachments/assets/609298ab-7523-42f4-b583-7eef299a1b8c"> 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_id` may be causing the error because if I remove it, it does render, but a warning appears for the `metadata` key. <img width="766" alt="image" src="https://github.com/user-attachments/assets/9f9cf2e8-1505-4c13-80b6-34fd03dca7a1"> The installed versions is as follows: - langchain-openai 0.2.1 - langserve 0.3.0
yindo added the investigate label 2026-02-16 00:19:41 -05:00
Author
Owner

@nicho2 commented on GitHub (Oct 2, 2024):

I obtain this too
image

config = {
    "configurable": {
        # le user_id donne les droits d'accès aux espaces
        "user_id": "3",
        # Checkpoints are accessed by thread_id
        "thread_id": thread_id

    },
    "run_name": "spaceUpChat"
}
runnable = graph.with_types(input_type=ChatInputType, output_type=dict)
runnable = runnable.with_config(config)
add_routes(app, runnable)
@nicho2 commented on GitHub (Oct 2, 2024): I obtain this too ![image](https://github.com/user-attachments/assets/8b4b826b-c591-4c7e-ab62-a5be068b79df) config = { "configurable": { # le user_id donne les droits d'accès aux espaces "user_id": "3", # Checkpoints are accessed by thread_id "thread_id": thread_id }, "run_name": "spaceUpChat" } runnable = graph.with_types(input_type=ChatInputType, output_type=dict) runnable = runnable.with_config(config) add_routes(app, runnable)
Author
Owner

@eyurtsev commented on GitHub (Oct 2, 2024):

Thanks for reporting. I'll need to investigate

@eyurtsev commented on GitHub (Oct 2, 2024): Thanks for reporting. I'll need to investigate
Author
Owner

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

@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.
Author
Owner

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

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langserve#233