mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Merge pull request #1201 from System233/patch-input-output-price
Fix: Input/output prices should be parsed using parseFloat
This commit is contained in:
commit
6d38e346d6
1 changed files with 2 additions and 2 deletions
|
|
@ -900,7 +900,7 @@ const ApiOptions = ({
|
|||
}}
|
||||
onChange={handleInputChange("openAiCustomModelInfo", (e) => {
|
||||
const value = (e.target as HTMLInputElement).value
|
||||
const parsed = parseInt(value)
|
||||
const parsed = parseFloat(value)
|
||||
return {
|
||||
...(apiConfiguration?.openAiCustomModelInfo ??
|
||||
openAiModelInfoSaneDefaults),
|
||||
|
|
@ -945,7 +945,7 @@ const ApiOptions = ({
|
|||
}}
|
||||
onChange={handleInputChange("openAiCustomModelInfo", (e) => {
|
||||
const value = (e.target as HTMLInputElement).value
|
||||
const parsed = parseInt(value)
|
||||
const parsed = parseFloat(value)
|
||||
return {
|
||||
...(apiConfiguration?.openAiCustomModelInfo ||
|
||||
openAiModelInfoSaneDefaults),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue