Skip to content
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

fixed InputTextContentPart.type and Voice #76

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lloydzhou
Copy link

@lloydzhou lloydzhou commented Nov 7, 2024

Purpose

  1. fixed InputTextContentPart.type
    see: https://platform.openai.com/docs/api-reference/realtime-client-events/conversation/item/create

The content of the message, applicable for message items.
Message items with a role of system support only input_text content, message items of role user support input_text and input_audio content, and message items of role assistant support text content.

  1. add more voice
    see https://platform.openai.com/docs/api-reference/realtime-client-events/session/update

The voice the model uses to respond. Supported voices are alloy, ash, ballad, coral, echo, sage, shimmer, and verse.

Does this introduce a breaking change?

  • Yes
  • No

Pull Request Type

What kind of change does this Pull Request introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation content changes
  • Other... Please describe:

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

@lloydzhou lloydzhou changed the title fixed InputTextContentPart.type fixed InputTextContentPart.type and Voice Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant