Skip to content

Model or Prompt condition is not written correctly. #52

Description

@XvKuoMing

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.") 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions