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 25 commits into
base: main
Choose a base branch
from
Draft

com.openai.unity 8.7.0 #371

wants to merge 25 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
  • Updated default Azure OpenAI API Version to GA 2024-10-21
  • 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.

Copilot

This comment was marked as outdated.

@StephenHodgson StephenHodgson self-assigned this May 23, 2025
@StephenHodgson StephenHodgson requested a review from Copilot May 30, 2025 00:19
Copilot

This comment was marked as outdated.

@StephenHodgson StephenHodgson requested a review from Copilot May 30, 2025 03:21
Copilot

This comment was marked as outdated.

@StephenHodgson StephenHodgson requested a review from Copilot May 31, 2025 17:11
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 changes to update the API and improve functionality in the Unity SDK, including renaming response format types, adding support for new parameters (such as instructions, chunking strategy, and include options), and updating static model definitions and API versions.

  • Renamed ChatResponseFormat and ResponseFormatObject to TextResponseFormat and TextResponseFormatConfiguration respectively
  • Added new overloads and parameters to SpeechRequest and AudioTranscriptionRequest for enhanced control and configuration
  • Updated API versioning and added new enum and interface definitions to support expanded functionality

Reviewed Changes

Copilot reviewed 183 out of 183 changed files in this pull request and generated 2 comments.

File Description
Runtime/Common/ListResponse.cs Updated generic constraint from BaseResponse to IListItem
Runtime/Authentication/OpenAISettings.cs Consolidated caching assignment adjustment for settings info
Runtime/Audio/AudioTranscriptionRequest.cs Added overloads and input validation for chunking and include parameters
Others Consistent renaming to use TextResponseFormat and related configuration types
Comments suppressed due to low confidence (1)

OpenAI/Packages/com.openai.unity/Runtime/Common/ListResponse.cs:11

  • The generic constraint has been updated from 'BaseResponse' to 'IListItem'. Confirm that all intended types implement 'IListItem' and update any related documentation if necessary.
where TObject : IListItem

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 overload to Client Settings to set a custom Azure OpenAI Domain Add Instruction parameter to speech requets Responses API
1 participant