Skip to content

Commit 89d8751

Browse files
committed
refactor: simplify
1 parent 24c1c5c commit 89d8751

2 files changed

Lines changed: 1 addition & 16 deletions

File tree

src/composables/useDataStudioChatAgent.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import type {
1111
} from '@/types/chat'
1212
import { storeToRefs } from 'pinia'
1313
import { computed } from 'vue'
14-
import { useAppStore } from '@/store/appStore'
1514
import { useConnectionStore } from '@/store/connectionStore'
1615
import {
1716

@@ -43,7 +42,7 @@ function adaptDataStudioSession(session: AgentSession): ChatSession {
4342
status: session.status as ChatSessionStatus,
4443
sources: session.sources,
4544
permissionsMode: session.permissionsMode,
46-
maxIterations: useAppStore().chatConfig.maxIterations,
45+
maxIterations: 200,
4746
stopReason: session.stopReason,
4847
stopMessage: session.stopMessage,
4948
}

src/store/appStore.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ export type LlmProvider = {
4545
models?: string[]
4646
}
4747

48-
export type ChatConfig = {
49-
maxIterations: number
50-
wallClockBudgetSecs: number
51-
tokenBudget: number
52-
compactThreshold: number
53-
}
54-
5548
type AppStoreState = {
5649
themeType: ThemeType
5750
languageType: LanguageType
@@ -62,7 +55,6 @@ type AppStoreState = {
6255
llmSettings: {
6356
providers: LlmProvider[]
6457
}
65-
chatConfig: ChatConfig
6658
featureModelRoutes: Record<string, { selectedModelId: string, useRecommendedModel: boolean }>
6759
}
6860

@@ -108,12 +100,6 @@ export const useAppStore = defineStore('app', {
108100
},
109101
],
110102
},
111-
chatConfig: {
112-
maxIterations: 25,
113-
wallClockBudgetSecs: 1800,
114-
tokenBudget: 20000000,
115-
compactThreshold: 0.75,
116-
},
117103
featureModelRoutes: {},
118104
}),
119105
persist: true,

0 commit comments

Comments
 (0)