Skip to content

Commit

Permalink
fix: typo in class name MetaInformationOpenAI
Browse files Browse the repository at this point in the history
  • Loading branch information
gehrisandro committed Aug 29, 2023
1 parent 726054a commit ca17a3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Responses/Meta/MetaInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class MetaInformation implements MetaInformationContract

private function __construct(
public string $requestId,
public readonly MetaInformaionOpenAI $openai,
public readonly MetaInformationOpenAI $openai,
public readonly ?MetaInformationRateLimit $requestLimit,
public readonly ?MetaInformationRateLimit $tokenLimit,
) {
Expand All @@ -30,7 +30,7 @@ public static function from(array $headers): self
{
$requestId = $headers['x-request-id'][0];

$openai = MetaInformaionOpenAI::from([
$openai = MetaInformationOpenAI::from([
'model' => $headers['openai-model'][0] ?? null,
'organization' => $headers['openai-organization'][0] ?? null,
'version' => $headers['openai-version'][0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace OpenAI\Responses\Meta;

final class MetaInformaionOpenAI
final class MetaInformationOpenAI
{
public function __construct(
public readonly ?string $model,
Expand Down
4 changes: 2 additions & 2 deletions tests/Responses/Meta/MetaInformation.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use OpenAI\Responses\Meta\MetaInformaionOpenAI;
use OpenAI\Responses\Meta\MetaInformation;
use OpenAI\Responses\Meta\MetaInformationOpenAI;
use OpenAI\Responses\Meta\MetaInformationRateLimit;

test('from response headers', function () {
Expand All @@ -10,7 +10,7 @@
expect($meta)
->toBeInstanceOf(MetaInformation::class)
->requestId->toBe('3813fa4fa3f17bdf0d7654f0f49ebab4')
->openai->toBeInstanceOf(MetaInformaionOpenAI::class)
->openai->toBeInstanceOf(MetaInformationOpenAI::class)
->openai->model->toBe('text-davinci-003')
->openai->organization->toBe('org-1234')
->openai->version->toBe('2020-10-01')
Expand Down

0 comments on commit ca17a3d

Please sign in to comment.