langchain icon indicating copy to clipboard operation
langchain copied to clipboard

feat(Add FastAPI + Vercel deployment option):

Open msoedov opened this issue 2 years ago • 0 comments

Update deployments doc with langcorn API server

API server example

from fastapi import FastAPI

from langcorn import create_service

app: FastAPI = create_service(
    "examples.ex1:chain",
    "examples.ex2:chain",
    "examples.ex3:chain",
    "examples.ex4:sequential_chain",
    "examples.ex5:conversation",
    "examples.ex6:conversation_with_summary",
)

More examples: https://github.com/msoedov/langcorn/tree/main/examples

Who can review?

@hwchase17

msoedov avatar May 11 '23 11:05 msoedov