summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useGeminiStream.test.tsx
diff options
context:
space:
mode:
authoruttamkanodia14 <[email protected]>2025-07-11 22:17:46 +0530
committerGitHub <[email protected]>2025-07-11 16:47:46 +0000
commit93284281de4a1593de802f3823707b9c1a43171e (patch)
tree51a88d91fe132cc5607e2f5cbb7aa21701418508 /packages/cli/src/ui/hooks/useGeminiStream.test.tsx
parented00612cf7107452d1e52044feda4305b410b81b (diff)
Logs the auth type in the user prompts, api responses and errors (#3795)
Diffstat (limited to 'packages/cli/src/ui/hooks/useGeminiStream.test.tsx')
-rw-r--r--packages/cli/src/ui/hooks/useGeminiStream.test.tsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/cli/src/ui/hooks/useGeminiStream.test.tsx b/packages/cli/src/ui/hooks/useGeminiStream.test.tsx
index e0e21f55..7e45cab2 100644
--- a/packages/cli/src/ui/hooks/useGeminiStream.test.tsx
+++ b/packages/cli/src/ui/hooks/useGeminiStream.test.tsx
@@ -273,6 +273,13 @@ describe('useGeminiStream', () => {
return clientInstance;
});
+ const contentGeneratorConfig = {
+ model: 'test-model',
+ apiKey: 'test-key',
+ vertexai: false,
+ authType: AuthType.USE_GEMINI,
+ };
+
mockConfig = {
apiKey: 'test-api-key',
model: 'gemini-pro',
@@ -307,6 +314,9 @@ describe('useGeminiStream', () => {
},
setQuotaErrorOccurred: vi.fn(),
getQuotaErrorOccurred: vi.fn(() => false),
+ getContentGeneratorConfig: vi
+ .fn()
+ .mockReturnValue(contentGeneratorConfig),
} as unknown as Config;
mockOnDebugMessage = vi.fn();
mockHandleSlashCommand = vi.fn().mockResolvedValue(false);