mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
minor bug fixes
This commit is contained in:
parent
87c18e445e
commit
97dead3007
@ -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,
|
||||
|
||||
@ -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 }) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user