export function createChatParamsHandler(ctx) {
    return async function chatParamsHandler(input) {
        ctx.modelBySession.set(input.sessionID, {
            providerID: input.model?.providerID ?? input.provider?.info?.id ?? input.provider?.id,
            modelID: input.model?.modelID ?? input.model?.id,
            variant: input.model?.variant,
        });
    };
}
//# sourceMappingURL=chat-params.js.map