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

Serving LCEL chains #41

Open
oyinig opened this issue Oct 26, 2023 · 0 comments
Open

Serving LCEL chains #41

oyinig opened this issue Oct 26, 2023 · 0 comments

Comments

@oyinig
Copy link

oyinig commented Oct 26, 2023

Does Langcorn support the serving of LCEL chains currently? I tried it and I got some error along the line of :

File "C:\Users\A\Documents\langcorn\langcorn-exanples\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\A\Documents\langcorn\langcorn-exanples\lib\site-packages\click\core.py", line 783, in invoke
return _callback(*args, **kwargs)
File "C:\Users\A\Documents\langcorn\langcorn-exanples\lib\site-packages\uvicorn\main.py", line 416, in main
run(
File "C:\Users\A\Documents\langcorn\langcorn-exanples\lib\site-packages\uvicorn\main.py", line 587, in run
server.run()
File "C:\Users\A\Documents\langcorn\langcorn-exanples\lib\site-packages\uvicorn\server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "C:\Users\A\Documents\langcorn\langcorn-exanples\lib\site-packages\uvicorn\server.py", line 68, in serve
config.load()
File "C:\Users\A\Documents\langcorn\langcorn-exanples\lib\site-packages\uvicorn\config.py", line 467, in load
self.loaded_app = import_from_string(self.app)
File "C:\Users\A\Documents\langcorn\langcorn-exanples\lib\site-packages\uvicorn\importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "C:\Python310\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\A\Documents\langcorn\gradely\application\vercel.py", line 5, in
app:FastAPI = create_service(
File "C:\Users\A\Documents\langcorn\gradely\langcorn\server\api.py", line 139, in create_service
inn, out = derive_fields(chain)
File "C:\Users\A\Documents\langcorn\gradely\langcorn\server\api.py", line 69, in derive_fields
return [language_app.input_key], ["output"]
AttributeError: 'RunnableSequence' object has no attribute 'input_key'

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

No branches or pull requests

1 participant