Skip to content

Commit 04a6c49

Browse files
committed
A few legit coderabbit fixes
1 parent e6eac4a commit 04a6c49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/webapp/app/utils/columnFormat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function formatBytes(bytes: number): string {
99
if (bytes === 0) return "0 B";
1010
const units = ["B", "KiB", "MiB", "GiB", "TiB"];
1111
const i = Math.min(
12-
Math.floor(Math.log(Math.abs(bytes)) / Math.log(1024)),
12+
Math.max(0, Math.floor(Math.log(Math.abs(bytes)) / Math.log(1024))),
1313
units.length - 1
1414
);
1515
return `${(bytes / Math.pow(1024, i)).toFixed(i === 0 ? 0 : 2)} ${units[i]}`;
@@ -22,7 +22,7 @@ export function formatDecimalBytes(bytes: number): string {
2222
if (bytes === 0) return "0 B";
2323
const units = ["B", "KB", "MB", "GB", "TB"];
2424
const i = Math.min(
25-
Math.floor(Math.log(Math.abs(bytes)) / Math.log(1000)),
25+
Math.max(0, Math.floor(Math.log(Math.abs(bytes)) / Math.log(1000))),
2626
units.length - 1
2727
);
2828
return `${(bytes / Math.pow(1000, i)).toFixed(i === 0 ? 0 : 2)} ${units[i]}`;

apps/webapp/app/v3/services/aiQueryService.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class AIQueryService {
5555

5656
constructor(
5757
private readonly tableSchema: TableSchema[],
58-
private readonly model: LanguageModelV1 = openai("codex-mini-latest")
58+
private readonly model: LanguageModelV1 = openai("gpt-4.1-mini")
5959
) {}
6060

6161
/**

0 commit comments

Comments
 (0)