OliveSensorAPI/generate_data
HongCheng b47a102994
Update zhipuai_gen_data.py 添加glm-4 response获取异常处理
# 解决方法
``` python
    try:
        response = client.chat.completions.create(
            model='glm-4',
            messages=messages,
            top_p=top_p,
        )
    except:
        response = client.chat.completions.create(
            model='glm-4',
            messages=messages,
            top_p=top_p,
        )

``` 
# 报错
``` python
    # Error code: 400, with error text {"error":{"code":"1301","message":"系统检测到输入或生成内容可能包含不安全或敏感内容,请您避免输入易产生敏感内容的提示语,感谢您的配合。"}}
```
2024-03-17 08:45:33 +09:00
..
xinghuo 新增ENmd文档 2024-03-10 15:52:18 +08:00
check.py add data_process 2024-01-23 21:25:12 +08:00
config.yml Update config.yml 2024-03-16 22:02:11 +09:00
ernie_gen_data.py add data_process 2024-01-23 21:25:12 +08:00
main.ipynb add data_process 2024-01-23 21:25:12 +08:00
OCR.md add ocr.md 2024-03-11 13:15:22 +08:00
qwen_gen_data_NoBash.py update qwen, zhipuai gen_data and readme 2024-03-16 21:46:02 +09:00
qwen_gen_data.py add data_process 2024-01-23 21:25:12 +08:00
requirements.txt Update requirements.txt 2024-03-16 22:01:35 +09:00
run_qwen.bash add data_process 2024-01-23 21:25:12 +08:00
tutorial_EN.md update qwen, zhipuai gen_data and readme 2024-03-16 21:46:02 +09:00
tutorial.md update qwen, zhipuai gen_data and readme 2024-03-16 21:46:02 +09:00
zhipuai_gen_data.py Update zhipuai_gen_data.py 添加glm-4 response获取异常处理 2024-03-17 08:45:33 +09:00