Skip to content

fix(provider): MistralTextToSpeechModel.available_voices reads only the first page#151

Open
kunalk16 wants to merge 2 commits intolfnovo:mainfrom
kunalk16:fix-mistral-voices-pagination
Open

fix(provider): MistralTextToSpeechModel.available_voices reads only the first page#151
kunalk16 wants to merge 2 commits intolfnovo:mainfrom
kunalk16:fix-mistral-voices-pagination

Conversation

@kunalk16
Copy link
Copy Markdown
Contributor

@kunalk16 kunalk16 commented May 2, 2026

Reference Issues/PRs

Fixes: #148

What does this implement/fix? Explain your changes.

Existing behavior is that the code makes a call to the GET /audio/voices API call and consumes the data from the response. It does not consider paginated responses. Hence, the modification is the PR is to consider pagination using the offset and limit parameters as per the documentation in https://docs.mistral.ai/api/endpoint/audio/voices#operation-list_voices_v1_audio_voices_get

Any other comments?

Test added, ruff/mypy passes, added documentation link.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@kunalk16 kunalk16 force-pushed the fix-mistral-voices-pagination branch from 057e37a to 60c5e86 Compare May 2, 2026 03:23
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.

fix: MistralTextToSpeechModel.available_voices reads only the first page

1 participant