feat(mistral): add full node.js support for mistralai plugin#1326
feat(mistral): add full node.js support for mistralai plugin#1326toubatbrian merged 16 commits intolivekit:mainfrom
mistralai plugin#1326Conversation
🦋 Changeset detectedLatest commit: 5adcc87 The changes in this PR will be included in the next version bump. This PR includes changesets to release 29 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
tinalenguyen
left a comment
There was a problem hiding this comment.
thank you for the PR! a few notes:
- could you add a
patchchangeset? - it seems that this would require a package rename mistral -> mistralai on npm, @toubatbrian would this be possible?
- we have not added support for provider tools yet in JS, perhaps we can port that over before merging this PR
2d97c19 to
aab2ef1
Compare
I added a
That would be great! However if you prefer I can remove the provider tools support from this PR now so as to make merging easier, and I'll add it later on when you will port that over. |
|
@jeanprbt thanks for iterating! it seems that some files are still renamed to mistralai and in the changeset, could you resolve those and the merge conflicts? and yes, i think we should remove the provider tools file for now. i'd be happy to add them back once we support them so you wouldn't have to do anything on your end! :) |
aab2ef1 to
2a5884a
Compare
I did not understand you wanted to keep
I removed them, you're right! Thanks 🙌 |
|
I maintained backward compatibility by adding back former |
toubatbrian
left a comment
There was a problem hiding this comment.
Could you also fix the linting in CI; otherwise LGTM!
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Linting & package names are fixed 🙌 |
Description
Rewrite the Mistral AI plugin (
plugins/mistral->plugins/mistralai) with full Node.js support, mirroring the Python Mistral plugin: LLM, STT (batch + realtime), and TTS.startStreamonly), matching the Python pluginagents/src/llm/provider_format/mistralai.ts) for convertingChatContextto Conversations API entriesChanges Made
Core framework (
agents/)mistralaiprovider format withtoChatCtx()mapping system/developer messages toinstructions, user messages tomessage.input, assistant messages tomessage.output, function calls tofunction.call, and tool outputs tofunction.result'mistralai'in theProviderFormatunion and dispatchPlugin (
plugins/mistralai/)audio.transcriptions.completeand realtime streaming viaRealtimeTranscriptionWebSocket with client-side VAD for endpointingaudio.speech.completewith f32le-to-s16le conversion, voice presets and reference audio (voice cloning) supportPre-Review Checklist
Testing