mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 07:10:55 +00:00
Logs the auth type in the user prompts, api responses and errors (#3795)
This commit is contained in:
parent
ed00612cf7
commit
93284281de
9 changed files with 65 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue