Skip to content

Commit 49e9e8b

Browse files
authored
Merge pull request #184 from octo-patch/feature/upgrade-minimax-m3
feat(openmemory-py): upgrade MiniMax default chat model to M3
2 parents 26c3838 + 5dc7f91 commit 49e9e8b

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/openmemory-py/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ embeddings={
180180
}
181181
```
182182

183-
> uses MiniMax's `embo-01` model (1536 dimensions). for chat completions, MiniMax supports `MiniMax-M2.7` and `MiniMax-M2.5-highspeed` via OpenAI-compatible API.
183+
> uses MiniMax's `embo-01` model (1536 dimensions). for chat completions, MiniMax supports `MiniMax-M3` (default), `MiniMax-M2.7`, and `MiniMax-M2.7-highspeed` via OpenAI-compatible API.
184184
185185
#### aws bedrock
186186
```python

packages/openmemory-py/src/openmemory/ai/minimax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self, api_key: str = None, base_url: str = None):
1919
self.client = AsyncOpenAI(api_key=self.api_key, base_url=self.base_url)
2020

2121
async def chat(self, messages: List[Dict[str, str]], model: str = None, **kwargs) -> str:
22-
m = model or env.minimax_model or "MiniMax-M2.7"
22+
m = model or env.minimax_model or "MiniMax-M3"
2323
temperature = kwargs.pop("temperature", None)
2424
if temperature is not None:
2525
temperature = max(0.0, min(float(temperature), 1.0))

packages/openmemory-py/tests/test_minimax.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def test_chat_default_model(self):
7171
await adapter.chat([{"role": "user", "content": "test"}])
7272

7373
call_kwargs = adapter.client.chat.completions.create.call_args
74-
assert call_kwargs.kwargs["model"] == "MiniMax-M2.7"
74+
assert call_kwargs.kwargs["model"] == "MiniMax-M3"
7575

7676
@pytest.mark.asyncio
7777
async def test_chat_custom_model(self):
@@ -87,10 +87,10 @@ async def test_chat_custom_model(self):
8787

8888
await adapter.chat(
8989
[{"role": "user", "content": "test"}],
90-
model="MiniMax-M2.5-highspeed",
90+
model="MiniMax-M2.7-highspeed",
9191
)
9292
call_kwargs = adapter.client.chat.completions.create.call_args
93-
assert call_kwargs.kwargs["model"] == "MiniMax-M2.5-highspeed"
93+
assert call_kwargs.kwargs["model"] == "MiniMax-M2.7-highspeed"
9494

9595
@pytest.mark.asyncio
9696
async def test_chat_temperature_clamping(self):
@@ -408,7 +408,7 @@ async def test_chat_real_api(self):
408408
adapter = MiniMaxAdapter(api_key=api_key)
409409
result = await adapter.chat(
410410
[{"role": "user", "content": "Say 'hello' and nothing else."}],
411-
model="MiniMax-M2.5-highspeed",
411+
model="MiniMax-M2.7-highspeed",
412412
temperature=0.0,
413413
)
414414
assert isinstance(result, str)

0 commit comments

Comments
 (0)