parent
4acb870959
commit
1d32313a30
3 changed files with 4 additions and 11 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
import {
|
import {
|
||||||
DEFAULT_GEMINI_MODEL,
|
DEFAULT_GEMINI_MODEL,
|
||||||
DEFAULT_GEMINI_FLASH_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"
|
* Checks if the default "pro" model is rate-limited and returns a fallback "flash"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* 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 { logs } from '@opentelemetry/api-logs';
|
||||||
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
|
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
|
||||||
import { Config } from '../config/config.js';
|
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 { vi, describe, beforeEach, it, expect } from 'vitest';
|
||||||
import { GenerateContentResponse } from '@google/genai';
|
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', () => {
|
describe('loggers', () => {
|
||||||
const mockLogger = {
|
const mockLogger = {
|
||||||
emit: vi.fn(),
|
emit: vi.fn(),
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ import {
|
||||||
recordToolCallMetrics,
|
recordToolCallMetrics,
|
||||||
} from './metrics.js';
|
} from './metrics.js';
|
||||||
import { isTelemetrySdkInitialized } from './sdk.js';
|
import { isTelemetrySdkInitialized } from './sdk.js';
|
||||||
import { ToolConfirmationOutcome } from '../index.js';
|
import { ToolConfirmationOutcome } from '../tools/tools.js';
|
||||||
import {
|
import {
|
||||||
GenerateContentResponse,
|
GenerateContentResponse,
|
||||||
GenerateContentResponseUsageMetadata,
|
GenerateContentResponseUsageMetadata,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue