Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

467 B
Raw Blame
import { describe, expect, it } from "vitest";
import {
  MAX_INLINE_IMAGE_BYTES,
  MAX_INLINED_IMAGE_HISTORY_BYTES,
} from "./attachment-limits.js";

describe("attachment transport limits", () => {
  it("keeps inline images within MiniMax's 10 MB request limit", () => {
    expect(MAX_INLINE_IMAGE_BYTES).toBe(10_000_000);
  });

  it("caps aggregate inlined history images to 30 MB", () => {
    expect(MAX_INLINED_IMAGE_HISTORY_BYTES).toBe(30_000_000);
  });
});