import assert from "node:assert/strict";
import test from "node:test";
import { buildQuickQuestionRequest } from "../src/lib/quick-question.ts";

test("quick question requests use the dedicated server endpoint shape", () => {
  const request = buildQuickQuestionRequest({
    provider: "openai",
    model: "gpt-4.1-mini",
    content: "How do I reset my password?",
  });

  assert.deepEqual(request, {
    provider: "openai",
    model: "gpt-4.1-mini",
    question: "How do I reset my password?",
  });
  assert.equal("additionalSystemPrompt" in request, false);
});
