Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update more realtime spec#397

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
codesoda wants to merge5 commits into64bit:main
base:main
Choose a base branch
Loading
fromcodesoda:chore/update-realtime-spec

Conversation

codesoda
Copy link
Contributor

@codesodacodesoda commentedJun 30, 2025
edited
Loading

🚀 Summary

Syncsasync-openai realtime types with the latest OpenAI Realtime API (June 2025).
Adds richer request/response configs, new client & server events, extra enums for models / voices / modalities, plus tracing & noise-reduction support.


✨ What’s new

  • Client events

    • AddedResponseConfig,OutputAudioBufferClearEvent,ConversationItemRetrieveEvent.
    • ResponseCancelEvent gainsresponse_id.
    • ResponseCreateEvent now usesResponseConfig instead ofSessionResource.
  • Server events

    • Addedoutput_audio_buffer.cleared,conversation.item.input_audio_transcription.delta,conversation.item.retrieved.
    • Fixed typo:InputAudioBufferCommitedEventInputAudioBufferCommittedEvent.
  • Response resource

    • New fields:finish_reason,created_at.
    • New finish reasons:TokenLimit,FunctionCall.
  • Session resource

    • New enums:RealtimeModel,Modality,NoiseReductionType.
    • Added fields:speed,input_audio_noise_reduction,tracing.
    • model is nowRealtimeModel;modalities isVec<Modality>.
  • Turn detection

    • Introducedsemantic_vad mode withcreate_response andinterrupt_response flags.
  • Audio

    • Unified enum names (g711_ulaw,g711_alaw).
    • AddedInputAudioNoiseReduction.
  • Tooling

    • WiredToolChoice &ToolDefinition intoResponseConfig.

⚠️ Breaking changes

  • ResponseCreateEvent:response now expectsResponseConfig,notSessionResource.
  • Enum casing:g711-ulaw /g711-alawg711_ulaw /g711_alaw.
  • Event rename:InputAudioBufferCommitedEventInputAudioBufferCommittedEvent.
  • Typed model field:SessionResource.model is nowRealtimeModel (no longer a free-formString).

codesodaand others added5 commitsJune 23, 2025 16:28
- Added `Cancelled` variant to `ResponseStatusDetail` enum for better handling of cancelled responses.- Introduced `LogProb` struct to capture log probability information for transcribed tokens.- Updated `ConversationItemInputAudioTranscriptionCompletedEvent` and `ConversationItemInputAudioTranscriptionDeltaEvent` to include optional `logprobs` for per-token log probability data.- Enhanced `AudioTranscription` struct with optional fields for `language`, `model`, and `prompt` to improve transcription accuracy and customization.- Added new `SemanticVAD` option in the `TurnDetection` enum to control model response eagerness.- Expanded `RealtimeVoice` enum with additional voice options for more variety in audio responses.
- Changed enum variants for `AudioFormat` to use underscores instead of hyphens in their serialized names.- Updated `G711ULAW` from `g711-ulaw` to `g711_law` and `G711ALAW` from `g711-alaw` to `g711_alaw` for improved clarity and adherence to naming conventions.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@codesoda

[8]ページ先頭

©2009-2025 Movatter.jp