Skip to content

com.openai.unity 8.7.0 #371

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

com.openai.unity 8.7.0 #371

wants to merge 5 commits into from

Conversation

StephenHodgson
Copy link
Member

@StephenHodgson StephenHodgson commented May 23, 2025

  • Added support for Responses API
  • Updated all static model definitions
  • Updated speech requests with instructions input
  • Updated audio transcription requests with ChunkingStrategy and includes
  • Renamed ChatResponseFormat ->TextResponseFormat
  • Renamed ResponseFormatObject -> TextResponseFormatConfiguration

- Added support for Responses API
- Updated speech requests with instructions input
- Updated audio transcription requests with ChunkingStrategy and includes
@StephenHodgson StephenHodgson requested a review from Copilot May 23, 2025 17:51
Copilot

This comment was marked as outdated.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces several new features including support for the Responses API, new parameters in speech requests (instructions), and additional configuration options (chunkingStrategy and include) for audio transcription requests.

  • Added tests for transcription and speech requests with updated parameters
  • Updated constructors and endpoint handling for chunking strategy and additional include parameters
  • Removed deprecated interfaces and updated sample code to utilize new overloads

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
OpenAI/Packages/com.openai.unity/Tests/TestFixture_07_Audio.cs Updated test methods to use new overloads, including instructions in speech requests and chunking strategy in audio transcription requests.
OpenAI/Packages/com.openai.unity/Samples~/Chat/ChatBehaviour.cs Updated SpeechRequest usage with named parameters.
OpenAI/Packages/com.openai.unity/Samples~/Assistant/AssistantBehaviour.cs Updated SpeechRequest usage with named parameters.
OpenAI/Packages/com.openai.unity/Runtime/Realtime/*.cs Removed obsolete types and updated VAD related classes.
OpenAI/Packages/com.openai.unity/Runtime/Audio/*.cs Revised constructors for SpeechRequest and AudioTranscriptionRequest to incorporate new parameters (instructions, chunkingStrategy, include) and simplified field handling in the AudioEndpoint.

@StephenHodgson StephenHodgson self-assigned this May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add Instruction parameter to speech requets Responses API
1 participant