Skip to content

Issue with Playground Rendering After Updating Langserve Version #777

@estebancatano

Description

@estebancatano

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions