From 9b87d317f71f969a7b23181aacc49d2011b89bf2 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Mon, 2 Oct 2023 14:30:26 -0400 Subject: [PATCH] Update README.md (#7) Update readme --- README.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cc37caad..7a01cd66 100644 --- a/README.md +++ b/README.md @@ -27,21 +27,17 @@ app = FastAPI( ) -# Serve Open AI and Anthropic models -LLMInput = Union[List[Union[SystemMessage, HumanMessage, str]], str] - add_routes( app, ChatOpenAI(), path="/openai", - input_type=LLMInput, config_keys=[], ) + add_routes( app, ChatAnthropic(), path="/anthropic", - input_type=LLMInput, config_keys=[], ) @@ -62,7 +58,6 @@ if __name__ == "__main__": uvicorn.run(app, host="localhost", port=8000) ``` - ### Client ```python @@ -106,7 +101,7 @@ chain.batch([{ "topic": "parrots" }, { "topic": "cats" }]) ## Installation ```bash -# pip install langserve[all] -- has not been published to pypi yet +pip install langserve[all] ``` or use `client` extra for client code, and `server` extra for server code.