Skip to content

Commit

Permalink
Merge pull request #1 from adrienbrault/format-null
Browse files Browse the repository at this point in the history
ChatRequest format should be null by default
  • Loading branch information
jdecool authored Mar 15, 2024
2 parents 7240f9c + a3b095e commit df6d306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client/Request/ChatRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ public static function fromArray(array $data): self
return new self(
model: $data['model'],
messages: $data['messages'] ?? [],
format: $data['format'] ?? self::FORMAT_JSON,
format: $data['format'] ?? null,
);
}

public function __construct(
public readonly string $model,
public readonly array $messages = [],
public readonly string $format = self::FORMAT_JSON,
public readonly ?string $format = null,
) {
}
}

0 comments on commit df6d306

Please sign in to comment.