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.