From 0e040efbe799785426b2f2bc03890f69c6d999db Mon Sep 17 00:00:00 2001 From: ZingLix Date: Tue, 9 Jan 2024 20:15:05 +0800 Subject: [PATCH] fix chinese character cannot be deleted properly --- src/qianfan/common/client/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qianfan/common/client/main.py b/src/qianfan/common/client/main.py index 70427c08..f28b0ce5 100644 --- a/src/qianfan/common/client/main.py +++ b/src/qianfan/common/client/main.py @@ -12,6 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +# The readline library needs to be imported first to +# ensure that Chinese input works properly in the client. +import readline # noqa from typing import Optional import typer