mem0ai/mem0

feat(ts-sdk): add MiniMax LLM provider

已關閉

#5,763 建立於 2026年6月23日

 (0 則留言) (0 個反應) (0 位負責人)Python (6,343 個分叉)batch import
enhancementgood first issuehelp wantedsdk-typescriptsize:M

倉庫指標

星標
 (55,741 顆星)
PR 合併指標
 (平均合併 6天 11小時) (30 天內合併 208 個 PR)

描述

Summary

The Python SDK supports MiniMax as an LLM provider, but the TypeScript OSS SDK (mem0ai/oss) does not. Add it to bring the TS SDK to parity.

Python reference mem0/llms/minimax.py
Registered in (Python) mem0/utils/factory.py (LLMFactory)
Target file (TypeScript) mem0-ts/src/oss/src/llms/minimax.ts
Suggested implementation OpenAI-compatible endpoint — subclass OpenAILLM with the MiniMax baseURL.

Requirements

  • Implement MiniMaxLLM in mem0-ts/src/oss/src/llms/minimax.ts, extending LLM (mem0-ts/src/oss/src/llms/base.ts) and mirroring the Python provider's behavior (generateResponse / generateChat).
  • Register the "minimax" provider in mem0-ts/src/oss/src/utils/factory.ts (LLMFactory).
  • Add config typing in mem0-ts/src/oss/src/types/.
  • Add a unit test under mem0-ts/src/oss/src/tests/.
  • No new dependency — reuse the existing openai client with a custom baseURL.
  • Update docs under docs/ if this provider is user-facing.

Reference pattern

Mirror an existing TS provider: llms/deepseek.ts (OpenAI-compatible) or llms/openai.ts.

Notes

Confirm the request/response payload against mem0/llms/minimax.py (MiniMax has some non-standard fields).


Part of the TypeScript ↔ Python SDK provider-parity effort. One provider per issue (atomic).

貢獻者指南