Python Aliyun 通义千问vl

# 业务空间模型调用请参考文档传入workspace信息: https://help.aliyun.com/document_detail/2746874.html    
# export DASHSCOPE_API_KEY=YOUR_DASHSCOPE_API_KEY

from dashscope import MultiModalConversation

def simple_multimodal_conversation_call():
    """Simple single round multimodal conversation call.
    """
    messages = [
        {
            "role": "user",
            "content": [
                {"image": "https://dashscope.oss-cn-beijing.aliyuncs.com/images/dog_and_girl.jpeg"},
                {"text": "这是什么?"}
            ]
        }
    ]
    responses = MultiModalConversation.call(model='qwen-vl-max',
                                            api_key='xxxxxxxxxxxxxxxxxx',
                                           messages=messages,
                                           stream=True)
    for response in responses:
        print(response)

if __name__ == '__main__':
    simple_multimodal_conversation_call()