-
-
Notifications
You must be signed in to change notification settings - Fork 607
feat(OpenAI): Realtime Ephermal Tokens #591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Transcribe test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds support for real-time and transcription session tokens by introducing new resource methods, response models, and test fixtures.
- Implements
token
andtranscribeToken
in the Realtime resource and client - Defines
SessionResponse
andTranscriptionSessionResponse
(plus nested types) for parsing API data - Updates
ClientFake
, test resources, and fixtures to cover the new endpoints
Reviewed Changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
src/Resources/Realtime.php | Implements token and transcribeToken endpoints |
src/Contracts/Resources/RealtimeContract.php | Declares interface for the realtime resource |
src/Client.php | Exposes realtime() on the main client |
src/Testing/Resources/RealtimeTestResource.php | Fakeable resource for recording realtime calls |
src/Testing/Responses/Fixtures/Realtime/SessionResponseFixture.php | Fixture attributes for session token tests |
src/Testing/Responses/Fixtures/Realtime/TranscriptionSessionResponseFixture.php | Fixture attributes for transcription token tests |
tests/Testing/Resources/RealtimeTestResource.php | Pest tests for verifying realtime client calls |
tests/Responses/Realtime/SessionResponse.php | Tests SessionResponse::from mapping |
tests/Responses/Realtime/TranscriptionSessionResponse.php | Tests TranscriptionSessionResponse::from mapping |
Comments suppressed due to low confidence (1)
tests/Responses/Realtime/SessionResponse.php:21
- Add assertions to verify each item in
tools
is an instance ofFunctionTool
, not just an array.
->tools->toBeArray()
What:
Description:
This adds the endpoints for obtaining ephemeral tokens to use webrtc/websocket real-time.
Related:
fixes: #122
fixes: #589