Explorer
home
/
zoteqbgb
/
public_html
/
vendor
/
openai-php
/
client
/
src
/
Responses
/
Edits
Location:
/home/zoteqbgb/public_html/vendor/openai-php/client/src/Responses/Edits
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: CreateResponseUsage.php
<?php declare(strict_types=1); namespace OpenAI\Responses\Edits; final class CreateResponseUsage { private function __construct( public readonly int $promptTokens, public readonly int $completionTokens, public readonly int $totalTokens, ) {} /** * @param array{prompt_tokens: int, completion_tokens: int, total_tokens: int} $attributes */ public static function from(array $attributes): self { return new self( $attributes['prompt_tokens'], $attributes['completion_tokens'], $attributes['total_tokens'], ); } /** * @return array{prompt_tokens: int, completion_tokens: int, total_tokens: int} */ public function toArray(): array { return [ 'prompt_tokens' => $this->promptTokens, 'completion_tokens' => $this->completionTokens, 'total_tokens' => $this->totalTokens, ]; } }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
CreateResponse.php
2,505 bytes
0644
2025-03-05 19:52
âï¸
ðï¸
Rename
CreateResponseChoice.php
684 bytes
0644
2025-03-05 19:52
âï¸
ðï¸
Rename
CreateResponseUsage.php
967 bytes
0644
2025-03-05 19:52
âï¸
ðï¸
Rename
Chang
Apply