enhancementgood first issuehelp wantedsdk-typescriptsize:S
Métriques du dépôt
- Stars
- (55 741 stars)
- Métriques de merge PR
- (Merge moyen 6j 11h) (208 PRs mergées en 30 j)
Description
Summary
The Python SDK supports Together 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/together.py |
| Registered in (Python) | mem0/utils/factory.py (LLMFactory) |
| Target file (TypeScript) | mem0-ts/src/oss/src/llms/together.ts |
| Suggested implementation | OpenAI-compatible — subclass OpenAILLM with baseURL=https://api.together.xyz/v1. |
Requirements
- Implement
TogetherLLMinmem0-ts/src/oss/src/llms/together.ts, extendingLLM(mem0-ts/src/oss/src/llms/base.ts) and mirroring the Python provider's behavior (generateResponse / generateChat). - Register the
"together"provider inmem0-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
openaiclient with a custombaseURL. - 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
Together's API is OpenAI-compatible, so no new dependency is needed. Match the default model used in the Python provider.
Part of the TypeScript ↔ Python SDK provider-parity effort. One provider per issue (atomic).