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