parent
4acb870959
commit
1d32313a30
|
@ -7,7 +7,7 @@
|
|||
import {
|
||||
DEFAULT_GEMINI_MODEL,
|
||||
DEFAULT_GEMINI_FLASH_MODEL,
|
||||
} from '@gemini-cli/core';
|
||||
} from '../config/models.js';
|
||||
|
||||
/**
|
||||
* Checks if the default "pro" model is rate-limited and returns a fallback "flash"
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { AuthType, ToolConfirmationOutcome } from '../index.js';
|
||||
import { ToolConfirmationOutcome } from '../tools/tools.js';
|
||||
import { AuthType } from '../core/contentGenerator.js';
|
||||
import { logs } from '@opentelemetry/api-logs';
|
||||
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
|
||||
import { Config } from '../config/config.js';
|
||||
|
@ -27,14 +28,6 @@ import * as sdk from './sdk.js';
|
|||
import { vi, describe, beforeEach, it, expect } from 'vitest';
|
||||
import { GenerateContentResponse } from '@google/genai';
|
||||
|
||||
vi.mock('@gemini-cli/cli/dist/src/utils/version', () => ({
|
||||
getCliVersion: () => 'test-version',
|
||||
}));
|
||||
|
||||
vi.mock('@gemini-cli/cli/dist/src/config/settings', () => ({
|
||||
getTheme: () => 'test-theme',
|
||||
}));
|
||||
|
||||
describe('loggers', () => {
|
||||
const mockLogger = {
|
||||
emit: vi.fn(),
|
||||
|
|
|
@ -30,7 +30,7 @@ import {
|
|||
recordToolCallMetrics,
|
||||
} from './metrics.js';
|
||||
import { isTelemetrySdkInitialized } from './sdk.js';
|
||||
import { ToolConfirmationOutcome } from '../index.js';
|
||||
import { ToolConfirmationOutcome } from '../tools/tools.js';
|
||||
import {
|
||||
GenerateContentResponse,
|
||||
GenerateContentResponseUsageMetadata,
|
||||
|
|
Loading…
Reference in New Issue