From 31e5afba46d0d1ef15d0ec29cbf037f44f1eea16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20K=C3=B6hnecke?= Date: Mon, 16 Dec 2024 09:20:48 +0100 Subject: [PATCH] fix: fastapi example having hardcoded url --- src/documentation/fastapi_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/documentation/fastapi_example.py b/src/documentation/fastapi_example.py index 8459fed89..cbf001ff5 100644 --- a/src/documentation/fastapi_example.py +++ b/src/documentation/fastapi_example.py @@ -65,7 +65,7 @@ def __call__( def client() -> Client: return Client( token=os.environ["AA_TOKEN"], - host=os.getenv("AA_CLIENT_BASE_URL", "https://api.aleph-alpha.com"), + host=os.environ["CLIENT_URL"], ) @@ -78,7 +78,7 @@ def default_model( def summary_task( model: Annotated[LuminousControlModel, Depends(default_model)], ) -> SteerableSingleChunkSummarize: - return SteerableSingleChunkSummarize(model) + return SteerableSingleChunkSummarize(model=model) @app.post(