Buckets:
| import { CONVERSATION_ID_SEPARATOR } from '$lib/constants'; | |
| /** | |
| * Build the conversation identity used by the server side replay buffer. | |
| * | |
| * The server identifies a stream session by a conversation id sent in the | |
| * X-Conversation-Id header. When the user has explicitly picked a model the | |
| * client appends ::modelName, so a per model session stays distinct and the | |
| * router resolves the owning child through its conv_id -> model map. | |
| */ | |
| export function streamIdentity(conversationId: string, model?: string | null): string { | |
| if (!conversationId) return ''; | |
| if (!model) return conversationId; | |
| return `${conversationId}${CONVERSATION_ID_SEPARATOR}${model}`; | |
| } | |
Xet Storage Details
- Size:
- 671 Bytes
- Xet hash:
- abad176971e69b7fc842adb04ef65d4d019d2367566651f57e163634e4120c25
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.