diff --git a/.github/workflows/langserve_release.yml b/.github/workflows/langserve_release.yml index 635f0e9a..fa49c821 100644 --- a/.github/workflows/langserve_release.yml +++ b/.github/workflows/langserve_release.yml @@ -10,4 +10,5 @@ jobs: ./.github/workflows/_release.yml with: working-directory: . + permissions: write-all secrets: inherit diff --git a/langserve/api_handler.py b/langserve/api_handler.py index 9f9d75cb..ca3da44c 100644 --- a/langserve/api_handler.py +++ b/langserve/api_handler.py @@ -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, ) diff --git a/pyproject.toml b/pyproject.toml index 8307a795..ab0e66a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langserve" -version = "0.2.2" +version = "0.2.3" description = "" readme = "README.md" authors = ["LangChain"] diff --git a/tests/unit_tests/test_server_client.py b/tests/unit_tests/test_server_client.py index f5117c49..0782188c 100644 --- a/tests/unit_tests/test_server_client.py +++ b/tests/unit_tests/test_server_client.py @@ -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 @@ -3130,4 +3131,5 @@ async def test_token_feedback_endpoint() -> None: "metadata": {"from_langserve": True}, "score": 3, "value": None, + "correction": None, }