File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ public extension Conversation {
395
395
/// Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
396
396
///
397
397
/// We generally recommend altering this or `top_p` but not both.
398
- public var temperature : Int ?
398
+ public var temperature : Double ?
399
399
400
400
/// Configuration options for a text response from the model. Can be plain text or structured JSON data.
401
401
///
@@ -480,7 +480,7 @@ public extension Conversation {
480
480
/// Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
481
481
///
482
482
/// We generally recommend altering this or `top_p` but not both.
483
- @MainActor var temperature : Int ? {
483
+ @MainActor var temperature : Double ? {
484
484
get { config. temperature }
485
485
set { config. temperature = newValue }
486
486
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ import MetaCodable
62
62
/// Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
63
63
///
64
64
/// We generally recommend altering this or `top_p` but not both.
65
- public var temperature : Int ?
65
+ public var temperature : Double ?
66
66
67
67
/// Configuration options for a text response from the model. Can be plain text or structured JSON data.
68
68
/// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
@@ -125,7 +125,7 @@ import MetaCodable
125
125
reasoning: ReasoningConfig ? = nil ,
126
126
store: Bool ? = nil ,
127
127
stream: Bool ? = nil ,
128
- temperature: Int ? = nil ,
128
+ temperature: Double ? = nil ,
129
129
text: TextConfig ? = nil ,
130
130
toolChoice: Tool . Choice ? = nil ,
131
131
tools: [ Tool ] ? = nil ,
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ import HelperCoders
169
169
/// Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
170
170
///
171
171
/// We generally recommend altering this or `topP` but not both.
172
- public var temperature : Int
172
+ public var temperature : Double
173
173
174
174
/// Configuration options for a text response from the model. Can be plain text or structured JSON data.
175
175
/// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
@@ -259,7 +259,7 @@ import HelperCoders
259
259
previousResponseId: String ? = nil ,
260
260
reasoning: ReasoningConfig ,
261
261
status: Status ,
262
- temperature: Int ,
262
+ temperature: Double ,
263
263
text: TextConfig ,
264
264
toolChoice: Tool . Choice ,
265
265
tools: [ Tool ] = [ ] ,
You can’t perform that action at this time.
0 commit comments