diff --git a/CHANGELOG.md b/CHANGELOG.md index 84161f1..901674b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `anthropic-sdk-php` will be documented in this file. +## Added default metadata support. - 2024-01-24 + +Claude is requiring user_id as part of the meta data. + ## v.1.0 - 2023-10-01 Version 1 release. Enjoy! diff --git a/src/Requests/CreateCompletionRequest.php b/src/Requests/CreateCompletionRequest.php index bd64bbf..025db2e 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:",