Skip to content

Commit

Permalink
Merge pull request #561 from TEN-framework/fix/playground-float32
Browse files Browse the repository at this point in the history
fix: fix float32 issue
  • Loading branch information
plutoless authored Jan 8, 2025
2 parents c0f2956 + 653c420 commit 94ce684
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions playground/src/components/Chat/ChatCfgPropertySelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ const convertToType = (value: any, type: string) => {
case "int32":
return parseInt(value, 10)
case "float64":
case "float32":
return parseFloat(value)
case "bool":
return value === true || value === "true"
Expand Down

0 comments on commit 94ce684

Please sign in to comment.