Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions apps/web/src/components/requests/stream-render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ export const detectCollectKind = (path: string): CollectKind | null => {
return null;
};

// Mirror of `detectCollectKind` for the target protocol of a translated turn.
// The downstream view derives its kind from `meta.path` (the client path =
// source protocol); the upstream view cannot, because the client path names
// the source, not the target. `meta.targetApi` is stamped at capture time by
// `traverseTranslation` and names the target protocol the inner attempt spoke.
// The upstream view uses meta.targetApi, stamped by captureFromDump, because meta.path identifies the client protocol.
export const collectKindFromTargetApi = (api: string | null | undefined): CollectKind | null => {
if (api === 'anthropicMessages') return 'anthropic-messages';
if (api === 'openaiResponses') return 'openai-responses';
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading