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

Vercel is not recognizing my LangchainRouter #126

Open
Gabrielmtvp opened this issue Sep 23, 2023 · 3 comments
Open

Vercel is not recognizing my LangchainRouter #126

Gabrielmtvp opened this issue Sep 23, 2023 · 3 comments
Labels
awaiting-response bug Something isn't working

Comments

@Gabrielmtvp
Copy link

I should be able to hit my End Point "/chat" on Vercel.

Scenario

I deployed my python application on Vercel
Screenshot 2023-09-24 at 01 12 28

Actual result

When I try to hit my End Point on Vercel Project it returns as "404 Not Found". It looks like Vercel is not mapping this End Point.

Expected result

When I hit my End Point I should receive a stream of text.

Acceptance criteria

  • [ ]
@Gabrielmtvp Gabrielmtvp added the bug Something isn't working label Sep 23, 2023
@ajndkr
Copy link
Owner

ajndkr commented Sep 24, 2023

@Gabrielmtvp just to confirm, are you able to access the endpoint locally?

I have not tried deploying on vercel (which can be a good adition to deployment options for the docs), can you please provide a step-by-step process of how you tried to deploy your app on vercel?

@Gabrielmtvp
Copy link
Author

Gabrielmtvp commented Sep 24, 2023

@ajndkr Yes, if I run locally the API works fine.

Exactly, it would be very good for the documentation.

Vercel has an option where you can give permission to your repository and then they deploy automatically using your repository on Github. I used this option.

Other interest point is that I created another simple route using @app.get("/") method from FastAPI and that one Vercel mapped with succesfull.

@ajndkr
Copy link
Owner

ajndkr commented Nov 29, 2023

@Gabrielmtvp can you please try again? I've recently released v0.8 which has some significant changes.

You can view the LangChainRouter documentation here: https://lanarky.ajndkr.com/learn/adapters/langchain/router/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-response bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants