Skip to content

Commit

Permalink
Merge branch 'main' into eugene/update_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev authored Sep 6, 2024
2 parents 2830e3a + d4704c2 commit 4d800d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/langserve_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ jobs:
./.github/workflows/_release.yml
with:
working-directory: .
permissions: write-all
secrets: inherit
1 change: 1 addition & 0 deletions langserve/api_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,7 @@ async def create_feedback_from_token(
score=create_request.score,
value=create_request.value,
comment=create_request.comment,
correction=create_request.correction,
metadata=metadata,
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langserve"
version = "0.2.2"
version = "0.2.3"
description = ""
readme = "README.md"
authors = ["LangChain"]
Expand Down
4 changes: 3 additions & 1 deletion tests/unit_tests/test_server_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3119,7 +3119,8 @@ async def test_token_feedback_endpoint() -> None:
local_app, raise_app_exceptions=True
) as async_client:
response = await async_client.post(
"/token_feedback", json={"token_or_url": "some_url", "score": 3}
"/token_feedback",
json={"token_or_url": "some_url", "score": 3},
)
assert response.status_code == 200

Expand All @@ -3130,4 +3131,5 @@ async def test_token_feedback_endpoint() -> None:
"metadata": {"from_langserve": True},
"score": 3,
"value": None,
"correction": None,
}

0 comments on commit 4d800d7

Please sign in to comment.