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
@@ -58,7 +61,7 @@ public function getInputShapeEnumValues(): array {
58
61
59
62
publicfunctiongetInputShapeDefaults(): array {
60
63
return [
61
-
'tone_input' => 'friendler',
64
+
'tone' => 'friendler',
62
65
];
63
66
}
64
67
@@ -112,7 +115,7 @@ public function process(?string $userId, array $input, callable $reportProgress)
112
115
thrownewRuntimeException('Invalid input text');
113
116
}
114
117
$textInput = $input['input'];
115
-
$toneInput = $input['tone_input'];
118
+
$toneInput = $input['tone'];
116
119
$prompt = "Reformulate the following text in a $toneInput tone in its original language. Output only the reformulation. Here is the text:" . "\n\n" . $textInput . "\n\n" . 'Do not mention the used language in your reformulation. Here is your reformulation in the same language:';
0 commit comments