Skip to content

Commit

Permalink
Use the Double type for floating-point values
Browse files Browse the repository at this point in the history
  • Loading branch information
shipinev committed Sep 10, 2024
1 parent 2e80755 commit f179fde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/ExyteOpenAI/Endpoint Configurations/Audio.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extension Audio: EndpointConfiguration {
data.append(
FormBodyPart(
name: "temperature",
value: .floatingPoint(Float(temperature))
value: .floatingPoint(temperature)
)
)
}
Expand Down Expand Up @@ -129,7 +129,7 @@ extension Audio: EndpointConfiguration {
data.append(
FormBodyPart(
name: "temperature",
value: .floatingPoint(Float(temperature))
value: .floatingPoint(temperature)
)
)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/ExyteOpenAI/Networking/FormBodyPart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public struct FormBodyPart {
case data(Data)
case plainText(String)
case integer(Int)
case floatingPoint(Float)
case floatingPoint(Double)
}

public let name: String
Expand Down

0 comments on commit f179fde

Please sign in to comment.