#14585·omi

[赏金提案] fix(semantic-scholar): URL 正则化、空值限制强制和连接池 ($25 建议)

作者: onlymrneo创建于 2026年9月18日更新于 2026年9月18日

总结

plugins/omi-semantic-scholar-app 中,几个输入边缘情况和连接生命周期缺口导致聊天工具执行失败:

  1. 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/204e3073870fae3d05bcbc2f6a8e263c9b72e776https://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