Files
clawX/tests/e2e/chat-history-rpc.ts

12 lines
319 B
TypeScript

import { DEFAULT_CHAT_HISTORY_MAX_CHARS } from '@/stores/chat/history-rpc-params';
export function chatHistoryRpcParams(sessionKey: string, limit: number) {
return {
sessionKey,
limit,
maxChars: DEFAULT_CHAT_HISTORY_MAX_CHARS,
};
}
export { DEFAULT_CHAT_HISTORY_MAX_CHARS as CHAT_HISTORY_MAX_CHARS };