Skip to content

Commit 6d38e34

Browse files
authored
Merge pull request RooCodeInc#1201 from System233/patch-input-output-price
Fix: Input/output prices should be parsed using parseFloat
2 parents ebe294b + f3d0203 commit 6d38e34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ const ApiOptions = ({
900900
}}
901901
onChange={handleInputChange("openAiCustomModelInfo", (e) => {
902902
const value = (e.target as HTMLInputElement).value
903-
const parsed = parseInt(value)
903+
const parsed = parseFloat(value)
904904
return {
905905
...(apiConfiguration?.openAiCustomModelInfo ??
906906
openAiModelInfoSaneDefaults),
@@ -945,7 +945,7 @@ const ApiOptions = ({
945945
}}
946946
onChange={handleInputChange("openAiCustomModelInfo", (e) => {
947947
const value = (e.target as HTMLInputElement).value
948-
const parsed = parseInt(value)
948+
const parsed = parseFloat(value)
949949
return {
950950
...(apiConfiguration?.openAiCustomModelInfo ||
951951
openAiModelInfoSaneDefaults),

0 commit comments

Comments
 (0)