❔阿里通义千问API接入langchain
type
status
date
slug
summary
tags
category
icon
password
通义千问的API接入,如果你的算力足够,也可以自托管,模型已经开源
首先获取key,按照官方指示,一步一步来
安装依赖包
简单使用
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F53097e0d-0b90-4e6f-8c6b-df7ab04ab352%2F1e0cd182-fa1a-4ec6-8acb-bba59531d4fe%2FUntitled.png?table=block&id=a2069000-efb7-499c-86c1-e077ff84234f&t=a2069000-efb7-499c-86c1-e077ff84234f&width=1556&cache=v2)
普通调用
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F53097e0d-0b90-4e6f-8c6b-df7ab04ab352%2Fbeb91ec5-1363-4393-b058-85be49c948a5%2FUntitled.png?table=block&id=a8c5c5ff-9bdc-45be-a5e2-8c7f5fb8dfaf&t=a8c5c5ff-9bdc-45be-a5e2-8c7f5fb8dfaf&width=1529&cache=v2)
支持Tools Calling
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F53097e0d-0b90-4e6f-8c6b-df7ab04ab352%2Fbde97574-ea05-4f40-86db-066d6903c4d4%2FUntitled.png?table=block&id=64b8c617-72c0-461e-8468-d17810f3e2a1&t=64b8c617-72c0-461e-8468-d17810f3e2a1&width=1537&cache=v2)
将工具结果输入给大模型
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F53097e0d-0b90-4e6f-8c6b-df7ab04ab352%2F2414185d-2eb4-40c9-bd96-57ce40c610b7%2FUntitled.png?table=block&id=63f482d3-6447-4d6a-831f-3d9252ac951f&t=63f482d3-6447-4d6a-831f-3d9252ac951f&width=1313.5&cache=v2)
有关Notion安装或者使用上的问题,欢迎您在底部评论区留言,一起交流~
多模态(qwen-vl-max)
qwen-vl-max模型具备多模态能力,这里我们使用它来识别一张图片并对图片做出描述,图片如下
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F53097e0d-0b90-4e6f-8c6b-df7ab04ab352%2F72007742-1792-42c8-8ccd-0e8787f6a33c%2FUntitled.png?table=block&id=f5e0d844-b60c-4e72-9eb0-75dfd13df221&t=f5e0d844-b60c-4e72-9eb0-75dfd13df221&width=1999&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F53097e0d-0b90-4e6f-8c6b-df7ab04ab352%2Ff1e34aa1-c69b-416a-9e8d-58c5abbbe0a0%2FUntitled.jpeg?table=block&id=f82761a5-15d1-4a14-b3ed-61b2bd16625f&t=f82761a5-15d1-4a14-b3ed-61b2bd16625f&width=1553&cache=v2)
目前总体来看,阿里千问的水平和工具丰富度还是不错的
Loading...