Skip to content

Commit

Permalink
Update README.md (#7)
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
eyurtsev authored Oct 2, 2023
1 parent 18fb916 commit 9b87d31
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=[],
)

Expand All @@ -62,7 +58,6 @@ if __name__ == "__main__":
uvicorn.run(app, host="localhost", port=8000)
```


### Client

```python
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 9b87d31

Please sign in to comment.