Skip to content

Commit 57b0fe6

Browse files
authored
Plugin: AI Helper: Fix params of generateDeepSeekQuestions()
1 parent 2c2b93e commit 57b0fe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/ai_helper/AiHelperPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function generateQuestions(int $nQ, string $lang, string $topic, string $
226226
case self::OPENAI_API:
227227
return $this->generateOpenAiQuestions($nQ, $lang, $topic, $questionType);
228228
case self::DEEPSEEK_API:
229-
return $this->generateDeepSeekQuestions($nQ, $lang, $topic);
229+
return $this->generateDeepSeekQuestions($nQ, $lang, $topic, $questionType);
230230
default:
231231
throw new Exception("Unsupported API provider: $apiName");
232232
}
@@ -256,7 +256,7 @@ private function generateOpenAiQuestions(int $nQ, string $lang, string $topic, s
256256
/**
257257
* Generate questions using DeepSeek.
258258
*/
259-
private function generateDeepSeekQuestions(int $nQ, string $lang, string $topic): string
259+
private function generateDeepSeekQuestions(int $nQ, string $lang, string $topic, string $questionType): string
260260
{
261261
$apiKey = $this->get('api_key');
262262
$prompt = sprintf(

0 commit comments

Comments
 (0)