Skip to content

Commit 587306e

Browse files
authored
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.
1 parent 62327ab commit 587306e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

requirements_o2.6.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ fastapi
2020
uvicorn
2121
gradio==4.44.1
2222
http://thunlp.oss-cn-qingdao.aliyuncs.com/multi_modal/never_delete/modelscope_studio-0.4.0.9-py3-none-any.whl
23+
pydantic==2.10.6

0 commit comments

Comments
 (0)