Skip to content

Commit d79135e

Browse files
committed
move gemini-with-fallbacks into agent-runtime
1 parent cff1e99 commit d79135e

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

backend/src/__tests__/request-files-prompt.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as geminiWithFallbacksModule from '@codebuff/agent-runtime/llm-api/gemini-with-fallbacks'
12
import { finetunedVertexModels } from '@codebuff/common/old-constants'
23
import {
34
TEST_AGENT_RUNTIME_IMPL,
@@ -18,7 +19,6 @@ import {
1819
} from 'bun:test'
1920

2021
import * as OriginalRequestFilesPromptModule from '../find-files/request-files-prompt'
21-
import * as geminiWithFallbacksModule from '../llm-apis/gemini-with-fallbacks'
2222

2323
import type { CostMode } from '@codebuff/common/old-constants'
2424
import type { AgentRuntimeDeps } from '@codebuff/common/types/contracts/agent-runtime'

backend/src/fast-rewrite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { promptFlashWithFallbacks } from '@codebuff/agent-runtime/llm-api/gemini-with-fallbacks'
12
import { models, openaiModels } from '@codebuff/common/old-constants'
23
import { buildArray } from '@codebuff/common/util/array'
34
import { parseMarkdownCodeBlock } from '@codebuff/common/util/file'
45
import { generateCompactId, hasLazyEdit } from '@codebuff/common/util/string'
56

6-
import { promptFlashWithFallbacks } from './llm-apis/gemini-with-fallbacks'
77
import { promptRelaceAI } from './llm-apis/relace-api'
88

99
import type { CodebuffToolMessage } from '@codebuff/common/tools/list'

backend/src/find-files/request-files-prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { dirname, isAbsolute, normalize } from 'path'
22

33
import { CustomFilePickerConfigSchema } from '@codebuff/agent-runtime/find-files/custom-file-picker-config'
4+
import { promptFlashWithFallbacks } from '@codebuff/agent-runtime/llm-api/gemini-with-fallbacks'
45
import {
56
castAssistantMessage,
67
messagesWithSystem,
@@ -18,7 +19,6 @@ import { getAllFilePaths } from '@codebuff/common/project-file-tree'
1819
import { and, eq } from 'drizzle-orm'
1920
import { range, shuffle, uniq } from 'lodash'
2021

21-
import { promptFlashWithFallbacks } from '../llm-apis/gemini-with-fallbacks'
2222
import { getRequestContext } from '../websockets/request-context'
2323

2424
import type { CustomFilePickerConfig } from '@codebuff/agent-runtime/find-files/custom-file-picker-config'
File renamed without changes.

0 commit comments

Comments
 (0)