Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanDalton authored and github-actions[bot] committed Jan 24, 2024
1 parent 45de0fa commit 0e809d1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 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 All @@ -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();
}

Expand Down

0 comments on commit 0e809d1

Please sign in to comment.