minor bug fixes

This commit is contained in:
aadesh18 2026-02-23 18:26:37 -08:00
parent 87c18e445e
commit 97dead3007
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ const CONTEXT_MAP = {
export function createChatAdapter(
projectId: string,
threadId: string,
contextType: "email-theme" | "email-template" | "email-draft",
onToolCall: (toolCall: ToolCallContent) => void,
getCurrentSource?: () => string,

View File

@ -25,7 +25,7 @@ describe("AI Query Endpoint - Validation", () => {
});
expect(response.status).toBe(400);
expect(response.body).toEqual(expect.stringContaining("Invalid mode"));
expect(response.body).toEqual(expect.stringContaining("must be one of the following values: stream, generate"));
});
it("rejects missing quality field", async ({ expect }) => {