Skip to content

Commit

Permalink
Can be readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanDalton committed Jan 24, 2024
2 parents bbe7a94 + 3b9ee31 commit 8eda1c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
18 changes: 9 additions & 9 deletions src/Requests/CreateCompletionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> $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<string> $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:",
Expand Down

0 comments on commit 8eda1c1

Please sign in to comment.