目的:通过API调用大模型提取图像特征
百度 API
1.用百度的api调用llama时报错
Max retries exceeded with url,Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))
解决:试了关闭多余链接等方法,没解决,然后发现开了VPN,关闭即可,同理也有可能是加速器等。
因为开了VPN,还出现了
Could not fetch URL https://pypi.org/simple/torch/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/torch/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))) - skipping
调用了文心跟llama,都不能直接输入图片,只能输入图片的二进制编码,并且将图片转成二进制编码后,token数会远远大于可输入的长度,尝试了压缩以及截断发送等方法,都不行,遂放弃。
Clarify API
功能挺多,但是没有文心聪明,有免费额度,超过免费额度就有点贵了
1.KeyError: "There is no item named '[Content_Types].xml' in the archive"
在网上看是因为文件受损了,然后我想点开文件看一下,已经点不开了,感觉崩溃了,赶快想各种办法恢复,终于找到了一个未保存的版本,看来对待数据还是要小心谨慎,多备份。