Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Feature request: apply streamingProfile (ttft/tps/jitter) to non-streaming responses too

クローズ
#544 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
api

調査の方向性

Start by finding where streamingProfile and latency are applied on the stream: true path, then compare them with the non-streaming branch that writes the fixture response immediately. The issue names four handlers (OpenAI-shaped, Claude Messages, Bedrock invoke, Bedrock invoke-with-response-stream) and the recorded-timings replay path. Done means non-streaming responses wait ttft + length/tps with jitter, or the maintainers have agreed on an opt-in flag first.

索引モデルが issue の本文から書いたものです。

説明

Right now `streamingProfile` (ttft/tps/jitter) only kicks in when the request has `stream: true`. For a non-streaming request, the fixture response gets written back immediately regardless of what `streamingProfile`/`latency` is set to - checked this across the OpenAI-shaped handler, the Claude Messages handler, and the Bedrock invoke/invoke-with-response-stream handlers, same pattern in all of them.

This matters for load/perf testing agent setups where a lot of the real traffic is non-streaming on purpose - sub-agent calls, tool-chain orchestration, guardrail/classifier calls, anything that isn't a user-facing chat UI. Right now mocking those gives zero latency, which throws off any load test that's trying to reproduce realistic timing/compounding across a call tree.

Would be great if `ttft`/`tps`/`jitter` (and the recorded-timings replay path) applied the same delay math to the non-streaming branch - obviously without the per-chunk pacing, just the equivalent total delay (ttft + completion_length/tps) before writing the response.

Happy to be told this is intentional (e.g. to keep default test runs fast) but if so maybe worth a flag to opt in, since right now there's no way to get non-streaming latency simulation at all.

主要言語
TypeScript
スター
979
フォーク
84
平均マージ
1日 2時間
マージ済み PR(30日)
77

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CopilotKit/aimock のほかの issue

CopilotKit/aimock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。