Skip to content

Commit

Permalink
Made table columns max width 80 chars.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpocock committed Dec 3, 2024
1 parent 90ae7cd commit a6a86f1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-gifts-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"evalite": patch
---

Made table columns max width 80 chars.
4 changes: 2 additions & 2 deletions packages/evalite/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ The TypeScript-native, local-first tool for testing LLM-powered apps.

### 1. Install `evalite` and `autoevals`:

Install `evalite`, and a scoring library like `autoevals`:
Install `evalite`, `vitest`, and a scoring library like `autoevals`:

```bash
pnpm add -D evalite autoevals
pnpm add -D evalite vitest autoevals
```

### 2. Add an `eval` script:
Expand Down
2 changes: 1 addition & 1 deletion packages/evalite/src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default class EvaliteReporter extends BasicReporter {
const availableInnerSpace =
availableColumns - columnsWritableWidth - scoreWidth;

const colWidth = Math.floor(availableInnerSpace / 2);
const colWidth = Math.min(Math.floor(availableInnerSpace / 2), 80);

this.ctx.logger.log(
table(
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ The TypeScript-native, local-first tool for testing LLM-powered apps.

### 1. Install `evalite` and `autoevals`:

Install `evalite`, and a scoring library like `autoevals`:
Install `evalite`, `vitest`, and a scoring library like `autoevals`:

```bash
pnpm add -D evalite autoevals
pnpm add -D evalite vitest autoevals
```

### 2. Add an `eval` script:
Expand Down

0 comments on commit a6a86f1

Please sign in to comment.