Model or Prompt condition is not written correctly.
XvKuoMing opened this issue · 0 comments
XvKuoMing commented
Hello! I was looking at your sdk and I think I found a bug in file: zhipuai-sdk-python-v4/zhipuai/api_resource/videos/videos.py (branch main, row 45)
The code you've written checks twice the same condition
if not model and not model:
raise ValueError("At least one of `model` and `prompt` must be provided.")
I suppose it should be like this:
if not model and not prompt:
raise ValueError("At least one of `model` and `prompt` must be provided.")