Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ilya Lavrenov <[email protected]>
  • Loading branch information
pavel-esir and ilya-lavrenov authored Jan 13, 2025
1 parent 1f6540a commit 44eb13f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/py_continuous_batching_pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void init_continuous_batching_pipeline(py::module_& m) {
})
.def_readwrite("m_scores", &GenerationResult::m_scores)
.def_readwrite("m_status", &GenerationResult::m_status)
.def_readwrite("perf_metrics", &GenerationResult::perf_metrics)
.def_readonly("perf_metrics", &GenerationResult::perf_metrics)
.def("__repr__",
[](const GenerationResult &r) -> py::str {
std::stringstream stream;
Expand All @@ -161,7 +161,7 @@ void init_continuous_batching_pipeline(py::module_& m) {
.def_readonly("m_request_id", &EncodedGenerationResult::m_request_id)
.def_readwrite("m_generation_ids", &EncodedGenerationResult::m_generation_ids)
.def_readwrite("m_scores", &EncodedGenerationResult::m_scores)
.def_readwrite("perf_metrics", &EncodedGenerationResult::perf_metrics);
.def_readonly("perf_metrics", &EncodedGenerationResult::perf_metrics);

py::enum_<ov::genai::GenerationFinishReason>(m, "GenerationFinishReason")
.value("NONE", ov::genai::GenerationFinishReason::NONE)
Expand Down

0 comments on commit 44eb13f

Please sign in to comment.