Skip to content

Commit 607a9df

Browse files
authored
fix(openrouter): set has_reasoning_effort for reasoning models (#56)
1 parent 2df82eb commit 607a9df

File tree

2 files changed

+143
-115
lines changed

2 files changed

+143
-115
lines changed

cmd/openrouter/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ func main() {
279279
CostPer1MOutCached: pricing.CostPer1MOutCached,
280280
ContextWindow: model.ContextLength,
281281
CanReason: canReason,
282+
HasReasoningEffort: canReason,
282283
SupportsImages: supportsImages,
283284
}
284285
if model.TopProvider.MaxCompletionTokens != nil {
@@ -341,6 +342,7 @@ func main() {
341342
CostPer1MOutCached: pricing.CostPer1MOutCached,
342343
ContextWindow: bestEndpoint.ContextLength,
343344
CanReason: canReason,
345+
HasReasoningEffort: canReason,
344346
SupportsImages: supportsImages,
345347
}
346348

0 commit comments

Comments
 (0)