Skip to content

Commit

Permalink
fix: fastapi example having hardcoded url
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasKoehneckeAA committed Dec 16, 2024
1 parent 707c8be commit 31e5afb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/documentation/fastapi_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)


Expand All @@ -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(
Expand Down

0 comments on commit 31e5afb

Please sign in to comment.