From df3aa45ef89ba48134afdb03303c244cea7d4477 Mon Sep 17 00:00:00 2001 From: Dennis Rall <56480601+dennisrall@users.noreply.github.com> Date: Mon, 10 Jun 2024 19:05:47 +0200 Subject: [PATCH] chore: add fastapi to client extra (#666) Just a quickfix for #212. It would be better not to have to install fastapi only for using the client, but in my opinion this is still better then getting errors when importing the `RemoteRunnable` after a `pip install "langserve[client]"`. Otherwise at least the readme should be updated. --------- Co-authored-by: Eugene Yurtsev --- poetry.lock | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poetry.lock b/poetry.lock index b04eeb26..ce3a9299 100644 --- a/poetry.lock +++ b/poetry.lock @@ -4042,10 +4042,10 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [extras] all = ["fastapi", "sse-starlette"] -client = [] +client = ["fastapi"] server = ["fastapi", "sse-starlette"] [metadata] lock-version = "2.0" python-versions = "^3.8.1" -content-hash = "5a3e72b44fdea68f4070b9a6e891618fed0761b59b0a7850f0c89e257f6b5e43" +content-hash = "977dc6680008cf9a04eb19176e58c00fb61436e90a957846963b787cb1f3e1ea" diff --git a/pyproject.toml b/pyproject.toml index b803c412..402e4a0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ sse-starlette = "^1.3.0" [tool.poetry.extras] # Extras that are used for client -client = [] +client = ["fastapi"] # Extras that are used for server server = ["sse-starlette", "fastapi"] # All