enhancementgood first issuehelp wantedsdk-typescriptsize:S
仓库指标
- Star
- (55,741 star)
- PR 合并指标
- (平均合并 6天 11小时) (30 天内合并 208 个 PR)
描述
Summary
The Python SDK supports Together as an embedding provider, but the TypeScript OSS SDK (mem0ai/oss) does not. Add it to bring the TS SDK to parity.
| Python reference | mem0/embeddings/together.py |
| Registered in (Python) | mem0/utils/factory.py (EmbedderFactory) |
| Target file (TypeScript) | mem0-ts/src/oss/src/embeddings/together.ts |
| Suggested implementation | OpenAI-compatible /v1/embeddings — reuse OpenAIEmbedder with baseURL=https://api.together.xyz/v1. |
Requirements
- Implement
TogetherEmbedderinmem0-ts/src/oss/src/embeddings/together.ts, extendingEmbedder(mem0-ts/src/oss/src/embeddings/base.ts) and mirroring the Python provider's behavior (embed / embedBatch). - Register the
"together"provider inmem0-ts/src/oss/src/utils/factory.ts(EmbedderFactory). - 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
openaiclient with a custombaseURL. - Update docs under
docs/if this provider is user-facing.
Reference pattern
Mirror an existing TS provider: embeddings/openai.ts.
Notes
No new dependency. Match the default embedding model in the Python provider.
Part of the TypeScript ↔ Python SDK provider-parity effort. One provider per issue (atomic).