Skip to content

Commit a2fa527

Browse files
committed
[Platform][OpenAI] Rename StreamChunk to TextChunk and enforce string content type
1 parent b19c67f commit a2fa527

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@
1414
/**
1515
* @author Oscar Esteve <oscarsdt@gmail.com>
1616
*/
17-
final class StreamChunk extends BaseResult implements \Stringable
17+
final class TextChunk extends BaseResult implements \Stringable
1818
{
1919
/**
20-
* @param string|iterable<mixed>|object|null $content
20+
* @param string $content
2121
*/
2222
public function __construct(
23-
private readonly string|iterable|object|null $content,
23+
private readonly string $content,
2424
) {
2525
}
2626

2727
public function __toString(): string
2828
{
29-
return (string) $this->content;
29+
return $this->content;
3030
}
3131

32-
public function getContent(): string|iterable|object|null
32+
public function getContent(): string
3333
{
3434
return $this->content;
3535
}

0 commit comments

Comments
 (0)