Forráskód Böngészése

Merge pull request #2654 from Kilo-Org/chrarnoldus-patch-1

Change cost types from Intl.StringNumericLiteral to number
Christiaan Arnoldus 4 hónapja
szülő
commit
3db71a0dac

+ 2 - 2
webview-ui/src/components/kilocode/settings/KiloModelInfoView.tsx

@@ -11,8 +11,8 @@ import { useModelProviders } from "@/components/ui/hooks/useSelectedModel"
 
 type ModelStats = {
 	model: string
-	cost?: Intl.StringNumericLiteral
-	costPerRequest?: Intl.StringNumericLiteral
+	cost?: number
+	costPerRequest?: number
 }
 
 export const formatPrice = (price: number | Intl.StringNumericLiteral, digits: number = 2) => {