mirror of
https://github.com/willchen96/mike.git
synced 2026-07-04 22:02:12 +02:00
Add courtlistener intergration, liquid glass redesign, UI improvements, version control, various fixes
This commit is contained in:
parent
d39f5806e5
commit
44e868eb42
106 changed files with 16350 additions and 7753 deletions
19
backend/src/lib/llm/rawStreamLog.ts
Normal file
19
backend/src/lib/llm/rawStreamLog.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
export function logRawLlmStream(args: {
|
||||
provider: string;
|
||||
model: string;
|
||||
iteration: number;
|
||||
label: string;
|
||||
payload: unknown;
|
||||
}) {
|
||||
if (
|
||||
process.env.NODE_ENV === "production" &&
|
||||
process.env.LOG_RAW_LLM_STREAM !== "true"
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(
|
||||
`[raw-llm-stream:${args.provider}:${args.model}:iter-${args.iteration}] ${args.label}`,
|
||||
);
|
||||
console.dir(args.payload, { depth: null, maxArrayLength: null });
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue