[赏金提案] fix(semantic-scholar): URL 正则化、空值限制强制和连接池 ($25 建议)
作者: onlymrneo创建于 2026年9月18日更新于 2026年9月18日
总结
在 plugins/omi-semantic-scholar-app 中,几个输入边缘情况和连接生命周期缺口导致聊天工具执行失败:
- Semantic Scholar 论文和作者 URL 无法查找:
normalize_identifier处理了doi.org/和arxiv.org/URL,但不识别semanticscholar.org/paper/URL (例如https://www.semanticscholar.org/paper/Attention-Is-All-You-Need-Vaswani/204e3073870fae3d05bcbc2f6a8e263c9b72e776或https://semanticscholar.org/paper/204e3073870fae3d05bcbc2f6a8e263c9b72e776)。- 原始 URL 字符串被引用并转发到图形 API 路径
/paper/https%3A//...,返回 404 "论文未找到"。 get_author_papers完全缺乏 URL 正则化:提供作者个人资料 URL (https://www.semanticscholar.org/author/A.-Vaswani/1741101) 或author: 1741101都会返回 404 错误。
内容来源: BasedHardware/omi