Merge pull request #665 from Szpadel/r1-derivatives-support

Relax deepseek-r1 detection so it also includes distilled models
This commit is contained in:
Matt Rubens 2025-01-30 18:03:40 -05:00 committed by GitHub
commit e2a8a7aa5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,8 +118,7 @@ export class OpenRouterHandler implements ApiHandler, SingleCompletionHandler {
// Handle models based on deepseek-r1
if (
this.getModel().id === "deepseek/deepseek-r1" ||
this.getModel().id.startsWith("deepseek/deepseek-r1:") ||
this.getModel().id.startsWith("deepseek/deepseek-r1") ||
this.getModel().id === "perplexity/sonar-reasoning"
) {
// Recommended temperature for DeepSeek reasoning models