jina-ai / langchain-serve

⚡ Langchain apps in production using Jina & FastAPI

Home Page:https://cloud.jina.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cant lc serve

bllfoad opened this issue · comments

'lc-serve' is not recognized as an internal or external command,
operable program or batch file.

Following up on this issue, I see that you were able to solve the issue with the command not found error.

About the gateway being stuck error, can you please save this file as file.py and run python file.py?

from jina import Flow, Executor, requests


class MyExecutor(Executor):
    @requests(on='/foo')
    def foo(self, parameters, **kwargs):
        print(f'In foo, got params {parameters}')

        
with Flow(protocol='http').add(uses=MyExecutor) as f:
    f.post(on='/foo', parameters={'a': 1, 'b': 2})

Closing since the cause was found and closed in the original issue.

pip install langchain-serve
could solve it