diff --git a/src/Requests/CreateCompletionRequest.php b/src/Requests/CreateCompletionRequest.php index 0f0d214..84ac104 100644 --- a/src/Requests/CreateCompletionRequest.php +++ b/src/Requests/CreateCompletionRequest.php @@ -14,15 +14,15 @@ class CreateCompletionRequest extends Request implements HasBody protected Method $method = Method::POST; /** - * @param string $prompt The model that will complete your prompt. - * @param string $model The prompt that you want Claude to complete. - * @param int $max_tokens_to_sample The maximum number of tokens to generate before stopping. - * @param array $stop_sequences Sequences that will cause the model to stop generating completion text. - * @param int $temperature Amount of randomness injected into the response. - * @param float $top_p Use nucleus sampling. - * @param int $top_k Only sample from the top K options for each subsequent token. - * @param array $metadata An object describing metadata about the request. - * @param bool $stream Whether to incrementally stream the response using server-sent events. + * @param string $prompt The model that will complete your prompt. + * @param string $model The prompt that you want Claude to complete. + * @param int $max_tokens_to_sample The maximum number of tokens to generate before stopping. + * @param array $stop_sequences Sequences that will cause the model to stop generating completion text. + * @param int $temperature Amount of randomness injected into the response. + * @param float $top_p Use nucleus sampling. + * @param int $top_k Only sample from the top K options for each subsequent token. + * @param array $metadata An object describing metadata about the request. + * @param bool $stream Whether to incrementally stream the response using server-sent events. */ public function __construct( public readonly string $prompt = "\n\nHuman:Say Hi\n\nAssistant:", @@ -45,7 +45,7 @@ public function resolveEndpoint(): string public function defaultBody(): array { - if(! isset($metadata['user_id'])) { + if (! isset($metadata['user_id'])) { $metadata['user_id'] = uniqid(); }