Skip to content

Commit

Permalink
patch: Use correct attribute for token url (#662)
Browse files Browse the repository at this point in the history
Use correct attribute
  • Loading branch information
eyurtsev authored May 24, 2024
1 parent bb74431 commit 81a633e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions langserve/api_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ async def invoke(
feedback_tokens=[
FeedbackToken(
key=feedback_key,
url=feedback_token.url,
token_url=feedback_token.url,
expires_at=feedback_token.expires_at.isoformat(),
)
]
Expand Down Expand Up @@ -999,7 +999,7 @@ async def batch(
feedback_tokens=[
FeedbackToken(
key=feedback_key,
url=feedback_token.url,
token_url=feedback_token.url,
expires_at=feedback_token.expires_at.isoformat(),
)
],
Expand Down
6 changes: 3 additions & 3 deletions tests/unit_tests/test_server_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,7 @@ async def test_token_feedback_included_in_responses() -> None:
{
"expires_at": "2023-01-01T00:00:00",
"key": "foo",
"token_url": None,
"token_url": "feedback_id",
}
],
"run_id": run_id,
Expand Down Expand Up @@ -2883,7 +2883,7 @@ async def test_token_feedback_included_in_responses() -> None:
{
"expires_at": "2023-01-01T00:00:00",
"key": "foo",
"token_url": None,
"token_url": "feedback_id",
}
]
},
Expand All @@ -2892,7 +2892,7 @@ async def test_token_feedback_included_in_responses() -> None:
{
"expires_at": "2023-01-01T00:00:00",
"key": "foo",
"token_url": None,
"token_url": "feedback_id",
}
]
},
Expand Down

0 comments on commit 81a633e

Please sign in to comment.