File tree Expand file tree Collapse file tree 5 files changed +6
-3
lines changed
webview-ui/src/components/settings Expand file tree Collapse file tree 5 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ export const globalSettingsSchema = z.object({
135135 diagnosticsEnabled : z . boolean ( ) . optional ( ) ,
136136
137137 rateLimitSeconds : z . number ( ) . optional ( ) ,
138- rateLimitAfter : z . boolean ( ) . optional ( ) ,
138+ rateLimitAfter : z . boolean ( ) . optional ( ) , // kilocode_change
139139 diffEnabled : z . boolean ( ) . optional ( ) ,
140140 fuzzyMatchThreshold : z . number ( ) . optional ( ) ,
141141 experiments : experimentsSchema . optional ( ) ,
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ const baseProviderSettingsSchema = z.object({
183183 fuzzyMatchThreshold : z . number ( ) . optional ( ) ,
184184 modelTemperature : z . number ( ) . nullish ( ) ,
185185 rateLimitSeconds : z . number ( ) . optional ( ) ,
186- rateLimitAfter : z . boolean ( ) . optional ( ) ,
186+ rateLimitAfter : z . boolean ( ) . optional ( ) , // kilocode_change
187187 consecutiveMistakeLimit : z . number ( ) . min ( 0 ) . optional ( ) ,
188188
189189 // Model reasoning.
Original file line number Diff line number Diff line change @@ -2989,9 +2989,11 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
29892989 // stream.
29902990 yield * iterator
29912991
2992+ // kilocode_change start
29922993 if ( apiConfiguration ?. rateLimitAfter ) {
29932994 Task . lastGlobalApiRequestTime = performance . now ( )
29942995 }
2996+ // kilocode_change end
29952997 }
29962998
29972999 // Checkpoints
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ import { BedrockCustomArn } from "./providers/BedrockCustomArn"
124124import { KiloCode } from "../kilocode/settings/providers/KiloCode" // kilocode_change
125125import { buildDocLink } from "@src/utils/docLinks"
126126import { KiloProviderRouting , KiloProviderRoutingManagedByOrganization } from "./providers/KiloProviderRouting"
127- import { RateLimitAfterControl } from "./RateLimitAfterSettings"
127+ import { RateLimitAfterControl } from "./RateLimitAfterSettings" // kilocode_change
128128
129129export interface ApiOptionsProps {
130130 uriScheme : string | undefined
Original file line number Diff line number Diff line change 1+ // kilocode_change - file added
12import { useAppTranslation } from "@/i18n/TranslationContext"
23import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react"
34import { useCallback } from "react"
You can’t perform that action at this time.
0 commit comments