Skip to content

Commit 96f4407

Browse files
Add project
1 parent cac360b commit 96f4407

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/ValueObjects/Transporter/Headers.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ public function withOrganization(string $organization): self
6262
]);
6363
}
6464

65+
/**
66+
* Creates a new Headers value object, with the given project, and the existing headers.
67+
*/
68+
public function withProject(string $project): self
69+
{
70+
return new self([
71+
...$this->headers,
72+
'OpenAI-Project' => $project,
73+
]);
74+
}
75+
6576
/**
6677
* Creates a new Headers value object, with the newly added header, and the existing headers.
6778
*/

0 commit comments

Comments
 (0)