You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/AIProxy/OpenRouter/OpenRouterChatCompletionRequestBody.swift
+6
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,9 @@ public struct OpenRouterChatCompletionRequestBody: Encodable {
25
25
/// Defaults to 0
26
26
publicletfrequencyPenalty:Double?
27
27
28
+
/// Include reasoning content in the response. Useful to understand how a reasoning model arrives at its response.
29
+
publicletincludeReasoning:Bool?
30
+
28
31
/// Modify the likelihood of specified tokens appearing in the completion.
29
32
/// Accepts an object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.
30
33
publicletlogitBias:[String:Double]?
@@ -157,6 +160,7 @@ public struct OpenRouterChatCompletionRequestBody: Encodable {
157
160
158
161
// optional
159
162
case frequencyPenalty ="frequency_penalty"
163
+
case includeReasoning ="include_reasoning"
160
164
case logitBias ="logit_bias"
161
165
case logprobs
162
166
case maxTokens ="max_tokens"
@@ -192,6 +196,7 @@ public struct OpenRouterChatCompletionRequestBody: Encodable {
0 commit comments