mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-30 19:32:39 +08:00
fix: remove duplicate dispatchMockProviders declaration
This commit is contained in:
@@ -96,35 +96,6 @@ export const defaultMockData = {
|
||||
|
||||
function noop() {}
|
||||
|
||||
/** Dispatch a providersLoaded message so ProviderProvider has real model data. */
|
||||
export function dispatchMockProviders() {
|
||||
window.dispatchEvent(
|
||||
new MessageEvent("message", {
|
||||
data: {
|
||||
type: "providersLoaded",
|
||||
providers: {
|
||||
kilo: {
|
||||
id: "kilo",
|
||||
name: "Kilo",
|
||||
env: [],
|
||||
models: {
|
||||
"anthropic/claude-sonnet-4-5": {
|
||||
id: "anthropic/claude-sonnet-4-5",
|
||||
name: "Anthropic: Claude Sonnet 4.5",
|
||||
inputPrice: 0.003,
|
||||
outputPrice: 0.015,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
connected: ["kilo"],
|
||||
defaults: {},
|
||||
defaultSelection: { providerID: "kilo", modelID: "anthropic/claude-sonnet-4-5" },
|
||||
},
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
||||
export function mockSessionValue(overrides?: {
|
||||
id?: string
|
||||
permissions?: PermissionRequest[]
|
||||
|
||||
Reference in New Issue
Block a user