Skip to content

feat (docs): updated Sarvam official community provider #6748

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

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

Conversation

rajatsandeepsen
Copy link

Background

Previous Sarvam provider package was unofficial and old #6079

But this one is officially approved by Sarvam DevRel team & @kurianbenoy-sarvam

From now on, we'll make sure a regular and up-to-date changes to this community provider package.

Summary

Added more API support for Sarvam, including

  • Chat completion
  • Text-to-Speech
  • Speech-to-Text
  • Language identifications
  • Translation
  • Transliterate
  • Tool Calling

Future Work

Latest sarvam-m model isn't trained on native tool calling feature (aka JSON mode). So we simulate this with added prompt engineering technique.

Soon team Sarvam will release next new model with complete OpenAI API support.

Also we're working on the future ai-sdk v5 support too.

Related Issues

Previous unofficial PR #6079 #6096

@rajatsandeepsen rajatsandeepsen changed the title feat (docs): updated Sarvam community provider feat (docs): updated Sarvam official community provider Jun 14, 2025
@rajatsandeepsen
Copy link
Author

Note

India has two Official Languages (Hindi and English) and 22 Scheduled Languages + almost 1,369 unofficial languages

So provider specific arguments options like source/target language code are super important as modelId params. So we put them inside provider instances functions, instead of using providerOptions: { sarvam: { } } to bring more type strictness & type completion for developers

Eg:

example

@kurianbenoy-sarvam
Copy link

Just wanted to thank @rajatsandeepsen for this PR. We officially endorse this PR from Sarvam.

cc: @sumit-sarvam @vinayak-sarvam

@rajatsandeepsen
Copy link
Author

@lgrammel

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