Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def test_minimax_request_routed_correctly(self):
"""A request with /minimax/ prefix should be routed to api.minimax.io."""
body = json.dumps(
{
"model": "MiniMax-M2.5",
"model": "MiniMax-M3",
"messages": [{"role": "user", "content": "hello"}],
}
).encode()
Expand All @@ -41,7 +41,7 @@ async def test_minimax_request_routed_correctly(self):
self.proxy._process_request(body, cleaned, provider)
assert len(self.events) == 1
assert self.events[0]["provider"] == "minimax"
assert self.events[0]["model"] == "MiniMax-M2.5"
assert self.events[0]["model"] == "MiniMax-M3"

@pytest.mark.asyncio
async def test_openai_not_affected_by_minimax(self):
Expand Down
8 changes: 4 additions & 4 deletions tests/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def setup_method(self):

def test_minimax_request_parsed_as_openai_compat(self):
body = {
"model": "MiniMax-M2.5",
"model": "MiniMax-M3",
"messages": [
{"role": "user", "content": "Hello MiniMax"},
],
Expand All @@ -112,7 +112,7 @@ def test_minimax_request_parsed_as_openai_compat(self):
)
assert len(self.events) == 1
assert self.events[0]["provider"] == "minimax"
assert self.events[0]["model"] == "MiniMax-M2.5"
assert self.events[0]["model"] == "MiniMax-M3"
assert self.events[0]["tokens"] > 0

def test_minimax_multimodal_content(self):
Expand All @@ -137,7 +137,7 @@ def test_minimax_multimodal_content(self):

def test_minimax_system_message(self):
body = {
"model": "MiniMax-M2.5",
"model": "MiniMax-M3",
"messages": [
{"role": "system", "content": "You are helpful"},
{"role": "user", "content": "Hi"},
Expand All @@ -155,7 +155,7 @@ def test_minimax_system_message(self):

def test_minimax_no_callback_no_error(self):
proxy = ProxyServer(port=9999, on_request=None)
body = {"model": "MiniMax-M2.5", "messages": []}
body = {"model": "MiniMax-M3", "messages": []}
# Should not raise
proxy._process_request(
json.dumps(body).encode(),
Expand Down