From 587306e3a656179b6545ced1381f743a030b2839 Mon Sep 17 00:00:00 2001 From: Dennis Huang <45286771+ZMXJJ@users.noreply.github.com> Date: Wed, 14 May 2025 20:13:23 +0800 Subject: [PATCH] Update requirements_o2.6.txt to resolve TypeError during chatbot demo startup ### Summary - Resolved a `TypeError` encountered during the startup of the ChatBot Demo. - Added version constraints for `pydantic` in the `requirements.txt` file to ensure dependency stability. ### Details 1. **Background**: - During the startup of the ChatBot Demo, a `TypeError` occurred due to incompatible versions of certain dependencies. - Investigation revealed that the issue was related to the `pydantic` library, where specific features were not functioning correctly in certain versions. 2. **Solution**: - Added version constraints for `pydantic` in the `requirements.txt` file to ensure compatibility. - Update: ``` pydantic==2.10.6 ``` - By specifying the version, we avoid runtime errors caused by inconsistent dependency versions. 3. **Testing Verification**: - Reinstalled dependencies locally and restarted the ChatBot Demo to confirm the issue was resolved. - Verified that all functionalities work as expected without any additional errors. --- requirements_o2.6.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements_o2.6.txt b/requirements_o2.6.txt index c7a52bb..8f904c3 100644 --- a/requirements_o2.6.txt +++ b/requirements_o2.6.txt @@ -20,3 +20,4 @@ fastapi uvicorn gradio==4.44.1 http://thunlp.oss-cn-qingdao.aliyuncs.com/multi_modal/never_delete/modelscope_studio-0.4.0.9-py3-none-any.whl +pydantic==2.10.6