feat: Add MiniMax as LLM provider in playground and cost tracking#438
Open
octo-patch wants to merge 1 commit into
Open
feat: Add MiniMax as LLM provider in playground and cost tracking#438octo-patch wants to merge 1 commit into
octo-patch wants to merge 1 commit into
Conversation
Add MiniMax AI as the 6th direct LLM provider in Langtrace playground and observability platform. MiniMax provides an OpenAI-compatible API. - Add /api/chat/minimax route using OpenAI SDK with MiniMax base URL - Add MiniMax models (M2.7, M2.7-highspeed, M2.5, M2.5-highspeed) - Add MiniMaxSettings interface and MiniMaxChatInterface types - Add minimaxHandler in chat-handlers for playground integration - Add MiniMaxSettingsSheet with temperature clamped to [0, 1] - Add MINIMAX_PRICING cost table for all 4 models - Add MiniMax to LLM_VENDORS, LLM_VENDOR_APIS, SUPPORTED_VENDORS - Add MiniMax vendor badge/color/logo in vendor-metadata - Add MiniMax to cost calculation in utils.ts - Add 26 tests (16 unit + 10 integration) with vitest - Update README supported integrations table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds MiniMax AI as the 6th direct LLM provider in Langtrace playground and observability platform. MiniMax provides an OpenAI-compatible API at
https://api.minimax.io/v1.Changes
API Route (
app/api/chat/minimax/route.ts)[0, 1]OpenAIStream/StreamingTextResponsePlayground Integration
MiniMaxSettingsinterface andMiniMaxChatInterfacetypeminimaxHandler()in chat-handlersMiniMaxSettingsSheetcomponent with temperature validationCost Tracking
MINIMAX_PRICINGcost table for all 4 modelsTests - 26 total (16 unit + 10 integration)
Test Plan