Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Playground Rendering After Updating Langserve Version #777

Open
estebancatano opened this issue Sep 27, 2024 · 3 comments
Open
Assignees

Comments

@estebancatano
Copy link

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
@nicho2
Copy link

nicho2 commented 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)

@eyurtsev eyurtsev self-assigned this Oct 3, 2024
@eyurtsev
Copy link
Collaborator

eyurtsev commented Oct 3, 2024

Thanks for reporting. I'll need to investigate

@fhkingma
Copy link

fhkingma commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants