Skip to content

Update FileStream API#3670

Merged
lovelydinosaur merged 1 commit into
v1from
filestream-api
Sep 18, 2025
Merged

Update FileStream API#3670
lovelydinosaur merged 1 commit into
v1from
filestream-api

Conversation

@lovelydinosaur
Copy link
Copy Markdown
Contributor

@lovelydinosaur lovelydinosaur commented Sep 18, 2025

Fix up server File responses...

import httpx

def app(request):
    return httpx.Response(200, content=httpx.File("index.html"))

httpx.run(app)

@lovelydinosaur lovelydinosaur merged commit 4acf5c2 into v1 Sep 18, 2025
5 checks passed
@lovelydinosaur lovelydinosaur deleted the filestream-api branch September 18, 2025 12:15
LittleChiu added a commit to LittleChiu/ai-pr-reviewer that referenced this pull request May 29, 2026
跑了三档复杂度的真实 PR,作为 demo 视频素材与质量证据:

| 编号 | PR | 文件 | 用时 | LLM 调用 | tokens | risks/sug |
|---|---|--:|--:|--:|--:|--:|
| A | fastapi/fastapi#15603 (依赖升级) | 6 | 11s | 1 | 1.5K | 0/0 |
| B | encode/httpx#3690 (新 API) | 4 | 245s | 3 | 7.8K | 6/4 |
| C | encode/httpx#3670 (重构) | 5 | 78s | 3 | 11.5K | 7/4 |

亮点:
- A 演示 triage 阶段对 lockfile/依赖性变更的'整体跳过',
  仅 1 次 LLM 调用、~1.5K tokens 完成
- C 抓到的 HIGH/bug 是真问题:对普通文件对象调 'await self._fin.close()'
  会抛 TypeError,带 high confidence 与具体修改方向
- 每条 risk 都附 file/line/severity/category/confidence,可直接采纳

每份样例同时存原始 JSON,评委可复现(同 commit SHA + 同 prompt + temp 0.2)。
LittleChiu added a commit to LittleChiu/ai-pr-reviewer that referenced this pull request May 29, 2026
跑了三档复杂度的真实 PR,作为 demo 视频素材与质量证据:

| 编号 | PR | 文件 | 用时 | LLM 调用 | tokens | risks/sug |
|---|---|--:|--:|--:|--:|--:|
| A | fastapi/fastapi#15603 (依赖升级) | 6 | 11s | 1 | 1.5K | 0/0 |
| B | encode/httpx#3690 (新 API) | 4 | 245s | 3 | 7.8K | 6/4 |
| C | encode/httpx#3670 (重构) | 5 | 78s | 3 | 11.5K | 7/4 |

亮点:
- A 演示 triage 阶段对 lockfile/依赖性变更的'整体跳过',
  仅 1 次 LLM 调用、~1.5K tokens 完成
- C 抓到的 HIGH/bug 是真问题:对普通文件对象调 'await self._fin.close()'
  会抛 TypeError,带 high confidence 与具体修改方向
- 每条 risk 都附 file/line/severity/category/confidence,可直接采纳

每份样例同时存原始 JSON,评委可复现(同 commit SHA + 同 prompt + temp 0.2)。
LittleChiu added a commit to LittleChiu/ai-pr-reviewer that referenced this pull request May 30, 2026
跑了三档复杂度的真实 PR,作为 demo 视频素材与质量证据:

| 编号 | PR | 文件 | 用时 | LLM 调用 | tokens | risks/sug |
|---|---|--:|--:|--:|--:|--:|
| A | fastapi/fastapi#15603 (依赖升级) | 6 | 11s | 1 | 1.5K | 0/0 |
| B | encode/httpx#3690 (新 API) | 4 | 245s | 3 | 7.8K | 6/4 |
| C | encode/httpx#3670 (重构) | 5 | 78s | 3 | 11.5K | 7/4 |

亮点:
- A 演示 triage 阶段对 lockfile/依赖性变更的'整体跳过',
  仅 1 次 LLM 调用、~1.5K tokens 完成
- C 抓到的 HIGH/bug 是真问题:对普通文件对象调 'await self._fin.close()'
  会抛 TypeError,带 high confidence 与具体修改方向
- 每条 risk 都附 file/line/severity/category/confidence,可直接采纳

每份样例同时存原始 JSON,评委可复现(同 commit SHA + 同 prompt + temp 0.2)。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant