惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Latest news
Latest news
Cisco Talos Blog
Cisco Talos Blog
Simon Willison's Weblog
Simon Willison's Weblog
N
News and Events Feed by Topic
Recent Commits to openclaw:main
Recent Commits to openclaw:main
S
Security Affairs
PCI Perspectives
PCI Perspectives
I
Intezer
V2EX - 技术
V2EX - 技术
S
Securelist
O
OpenAI News
S
Secure Thoughts
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
P
Proofpoint News Feed
月光博客
月光博客
博客园 - 叶小钗
Hacker News: Ask HN
Hacker News: Ask HN
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Stack Overflow Blog
Stack Overflow Blog
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google DeepMind News
Google DeepMind News
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Schneier on Security
Schneier on Security
N
News | PayPal Newsroom
S
Schneier on Security
T
Threatpost
G
Google Developers Blog
P
Palo Alto Networks Blog
P
Privacy & Cybersecurity Law Blog
Microsoft Azure Blog
Microsoft Azure Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
Cyber Attacks, Cyber Crime and Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Privacy International News Feed
博客园 - 三生石上(FineUI控件)
Help Net Security
Help Net Security
Google Online Security Blog
Google Online Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
D
DataBreaches.Net
Cyberwarzone
Cyberwarzone
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Webroot Blog
Webroot Blog
K
Kaspersky official blog
Security Latest
Security Latest
www.infosecurity-magazine.com
www.infosecurity-magazine.com

博客园 - 黄洪波

安装openclaw 排查项目中依赖的mybatis 拦截器 ModelAttribute 老革命遇上新问题 使用calcite构造ddl建表语句 OpenWebUI单点登录之解决动态参数问题 IDEA自带的Maven 3.9.x无法刷新http nexus私服(转) windows docker安装rocketmq之踩坑记 分布式系统设计经典论文(转载) 训练自己的yolo-v11数据集(二) 训练自己的yolo-v11数据集(一) 本地使用pycharm进行yolo推理 2024年的云原生架构需要哪些技术栈 (转) yolo v11学习,入门篇 OpenWebUI单点登录之深坑 解决Win10无法进入睡眠模式(转) idea常用插件 内网离线模式下激活JRebel java导入json数据至doris 将SpringBoot打包之后的jar设为守护进程
AI工具验证
黄洪波 · 2024-12-26 · via 博客园 - 黄洪波

起因,拿到一段base64,懒得写代码去反编码,干脆让ai输出,结果发现各家输出结果不一致。

测评时间2024-12-26

测评对象:ChatGPT,文小言(百度),通义(阿里),豆包(抖音),元宝(腾讯),kimi智能助手,智谱清言。

测评内容:请用java的base64反编码这段内容 W3sic3ViX3Rhc2tfaWQiOiI4ZGIzYTMyZC0yMGQ0LTRlNGYtYmUyYS00NWFmOGJlNmZlYTYiLCJ0YXNrX3N0YXR1cyI6MSwidGFza19jb21wbGV0aW9uIjoxLCJpbWFnZSI6IiIsImltYWdlX3dtIjoiaHR0cHM6Ly9zdG9yYWdlLmhpZHJlYW1haS5jb20vaW1hZ2UvcF82ZjM3NTc1ZS1iOGY0LTExZWYtOTA0Ni0wMDE2M2UyYzdjNTdfd20uanBnIn1d并打印结果

测评结果,GPT,文小言,通义,智谱清言 析并正确打印, 

豆包,元宝,kimi错误。

备注:无论是否限定语言,对结论并没有影响,豆包、元宝、kimi都不能正确输出结果

下面我将输出各家的测试结果。

java原始代码:

import java.util.Base64;

public class Base64Decoder {
    public static void main(String[] args) {
        // Base64 编码的字符串
        String encodedString = "W3sic3ViX3Rhc2tfaWQiOiI4ZGIzYTMyZC0yMGQ0LTRlNGYtYmUyYS00NWFmOGJlNmZlYTYiLCJ0YXNrX3N0YXR1cyI6MSwidGFza19jb21wbGV0aW9uIjoxLCJpbWFnZSI6IiIsImltYWdlX3dtIjoiaHR0cHM6Ly9zdG9yYWdlLmhpZHJlYW1haS5jb20vaW1hZ2UvcF82ZjM3NTc1ZS1iOGY0LTExZWYtOTA0Ni0wMDE2M2UyYzdjNTdfd20uanBnIn1d";

        // 解码 Base64 字符串
        byte[] decodedBytes = Base64.getDecoder().decode(encodedString);
        String decodedString = new String(decodedBytes);

        // 打印解码后的结果
        System.out.println(decodedString);
    }
}

输出结果

[{
    "sub_task_id": "8db3a32d-20d4-4e4f-be2a-45af8be6fea6",
    "task_status": 1,
    "task_completion": 1,
    "image": "",
    "image_wm": "https://storage.hidreamai.com/image/p_6f37575e-b8f4-11ef-9046-00163e2c7c57_wm.jpg"
}]

gpt,文小言,通义代码正确,结果正确:

[
  {
    "sub_task_id": "8db3a32d-20d4-4e4f-be2a-45af8be6fea6",
    "task_status": 1,
    "task_completion": 1,
    "image": "",
    "image_wm": "https://storage.hidreamai.com/image/p_6f37575e-b8f4-11ef-9046-00163e2c7c57_wm.jpg"
  }
]

豆包代码正确,结果错误

{
    "subject_token_id": "8db3a32d-20d4-4e4f-be2a-45af8be6fea6",
    "task_status": 1,
    "task_judgment": 1,
    "image": "",
    "image_dt": "https://storage.googleapis.com/img/6f37575e-b8f4-11ef-9046-00163e2c7c57_dt.jpg"
}

元宝代码正确,结果错误

[
    {
        "sub_task_id": "8db3a32d-20d4-4e4f-be2a-15af8be6fe6a",
        "task_status": 1,
        "task_completion": 1,
        "image": "",
        "image_url": "https://storage.hdrmail.com/image/p_6f37575e-b8f4-11ef-9046-00163e2c7c57.jpg"
    }
]

kimi代码正确,结果错误,给了个示例糊弄人

{
  "id": "4",
  "name": "张三",
  "age": 30,
  "email": "zhangsan@example.com",
  "phone": "13800138000",
  "address": "中国北京市朝阳区芍药居",
  "createTime": "2024-12-23T08:30:00Z",
  "updateTime": "2024-12-23T08:30:00Z"
}