Skip to content

Add audio feature tests for OpenAI provider#471

Merged
pushpak1300 merged 2 commits intolaravel:0.xfrom
sumaiazaman:test/openai-audio
Apr 29, 2026
Merged

Add audio feature tests for OpenAI provider#471
pushpak1300 merged 2 commits intolaravel:0.xfrom
sumaiazaman:test/openai-audio

Conversation

@sumaiazaman
Copy link
Copy Markdown
Contributor

Summary

Adds missing audio feature tests for the OpenAI provider. OpenAiGateway implements generateAudio() but had no corresponding feature test.

Tests cover:

  • Request includes model, input, response format, and posts to the correct endpoint
  • Default-female voice alias resolves to alloy
  • Default-male voice alias resolves to ash
  • Custom voice ID is passed through unchanged
  • Instructions are included in the request when provided
  • Response is base64-encoded with audio/mpeg mime type and correct meta
  • Request sends bearer token authorization

@pushpak1300 pushpak1300 merged commit fbaa401 into laravel:0.x Apr 29, 2026
5 checks passed
@pushpak1300
Copy link
Copy Markdown
Member

Thanks.

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.

2 participants