@@ -14,15 +14,15 @@ class CreateCompletionRequest extends Request implements HasBody
14
14
protected Method $ method = Method::POST ;
15
15
16
16
/**
17
- * @param string $prompt The model that will complete your prompt.
18
- * @param string $model The prompt that you want Claude to complete.
19
- * @param int $max_tokens_to_sample The maximum number of tokens to generate before stopping.
20
- * @param array<string> $stop_sequences Sequences that will cause the model to stop generating completion text.
21
- * @param int $temperature Amount of randomness injected into the response.
22
- * @param float $top_p Use nucleus sampling.
23
- * @param int $top_k Only sample from the top K options for each subsequent token.
24
- * @param array $metadata An object describing metadata about the request.
25
- * @param bool $stream Whether to incrementally stream the response using server-sent events.
17
+ * @param string $prompt The model that will complete your prompt.
18
+ * @param string $model The prompt that you want Claude to complete.
19
+ * @param int $max_tokens_to_sample The maximum number of tokens to generate before stopping.
20
+ * @param array<string> $stop_sequences Sequences that will cause the model to stop generating completion text.
21
+ * @param int $temperature Amount of randomness injected into the response.
22
+ * @param float $top_p Use nucleus sampling.
23
+ * @param int $top_k Only sample from the top K options for each subsequent token.
24
+ * @param array $metadata An object describing metadata about the request.
25
+ * @param bool $stream Whether to incrementally stream the response using server-sent events.
26
26
*/
27
27
public function __construct (
28
28
public readonly string $ prompt = "\n\nHuman:Say Hi \n\nAssistant: " ,
@@ -45,7 +45,7 @@ public function resolveEndpoint(): string
45
45
46
46
public function defaultBody (): array
47
47
{
48
- if (! isset ($ metadata ['user_id ' ])) {
48
+ if (! isset ($ metadata ['user_id ' ])) {
49
49
$ metadata ['user_id ' ] = uniqid ();
50
50
}
51
51
0 commit comments