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

Playground endpoint is printed even if it is not enabled #774

Open
alice17 opened this issue Sep 24, 2024 · 0 comments
Open

Playground endpoint is printed even if it is not enabled #774

alice17 opened this issue Sep 24, 2024 · 0 comments
Assignees

Comments

@alice17
Copy link

alice17 commented Sep 24, 2024

I have two paths for two chains configured for my app:

  add_routes(app, chain, enabled_endpoints=["playground", "stream_log"])
  add_routes(app,
             chain_with_sources,
             path="/rag-with-sources",
             enabled_endpoints=["invoke"])

Even if the second route does not have the playground enabled, the endpoint is still printed when starting the application:

LANGSERVE: Playground for chain "/" is live at:
LANGSERVE:  │
LANGSERVE:  └──> /playground/
LANGSERVE:
LANGSERVE: Playground for chain "/rag-with-sources/" is live at:
LANGSERVE:  │
LANGSERVE:  └──> /rag-with-sources/playground/
LANGSERVE:
LANGSERVE: See all available routes at /docs/

When I try to access /rag-with-sources/playground/ I get 404.

@alice17 alice17 changed the title Playground path is printed even if it is not enabled Playground endpoint is printed even if it is not enabled Sep 24, 2024
@eyurtsev eyurtsev self-assigned this Oct 3, 2024
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

2 participants