We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef16d49 commit 6d3fa90Copy full SHA for 6d3fa90
src/python/py_utils.hpp
@@ -19,7 +19,7 @@ namespace ov::genai::pybind::utils {
19
// When StreamerVariant is used utf-8 decoding is done by pybind and can lead to exception on incomplete texts.
20
// Therefore strings decoding should be handled with PyUnicode_DecodeUTF8(..., "replace") to not throw errors.
21
using PyBindStreamerVariant = std::variant<
22
- std::function<std::optional<uint16_t>(std::string)>,
+ std::function<std::optional<uint16_t>(py::str)>,
23
std::shared_ptr<StreamerBase>,
24
std::monostate>;
25
0 commit comments