Commit Graph

3 Commits

Author SHA1 Message Date
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
HongCheng
eb12c3aa2b update qwen, zhipuai gen_data and readme 2024-03-16 21:46:02 +09:00
8baby8
c5254ace61 add data_process 2024-01-23 21:25:12 +08:00