在环境中启用 netrc 身份验证后,仓库文件下载会跟随重定向

作者: hamizan-azman创建于 2026年6月5日更新于 2026年6月5日

我在仓库文件内容获取路径中发现了凭证传播问题。在当前的`main`分支中,/chat/completions/stream接受`repo_url`、`filePath`、`type`和`token`。当`filePath`存在时,处理程序调用`get_file_content(...)`。对于 GitHub 企业风格的 URL,`get_github_file_content()` 会从提供的`repo_url`构建 API URL 并调用:

内容来源: AsyncFuncAI/deepwiki-open