Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/lemmy/test/clients/google.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ describe("GoogleClient", () => {
const result = await thinkingClient.ask("Solve this step by step: What is 127 * 83? Show your reasoning.", {
context,
onThinkingChunk,
includeThoughts: true,
});

expect(result.type).toBe("success");
Expand Down Expand Up @@ -228,7 +229,12 @@ describe("GoogleClient", () => {
expect(modelClient.getProvider()).toBe("google");

// Basic functionality test
const result = await modelClient.ask('Say "test" and nothing else', { context: new Context() });
const askOptions: any = { context: new Context() };
// Enable thinking for thinking models
if (model.includes("thinking")) {
askOptions.includeThoughts = true;
}
const result = await modelClient.ask('Say "test" and nothing else', askOptions);
expect(result.type).toBe("success");
if (result.type === "success") {
expect(result.message.content).toBeDefined();
Expand Down