mirror of
https://github.com/csunny/DB-GPT.git
synced 2026-07-16 17:15:22 +00:00
fix: sort imports in test_minimax.py to pass ruff I001 checks
Co-authored-by: Aries-ckt <13723926+Aries-ckt@users.noreply.github.com>
This commit is contained in:
@@ -6,9 +6,9 @@ from unittest.mock import patch
|
||||
import pytest
|
||||
|
||||
from dbgpt.model.proxy.llms.minimax import (
|
||||
_DEFAULT_MODEL,
|
||||
MiniMaxDeployModelParameters,
|
||||
MiniMaxLLMClient,
|
||||
_DEFAULT_MODEL,
|
||||
)
|
||||
|
||||
|
||||
@@ -37,29 +37,29 @@ class TestMiniMaxModelList:
|
||||
|
||||
def test_model_list_contains_m27(self):
|
||||
# Import triggers registration
|
||||
from dbgpt.model.proxy.llms.minimax import MiniMaxLLMClient # noqa: F811
|
||||
from dbgpt.model.adapter.base import get_model_adapter
|
||||
from dbgpt.model.proxy.llms.minimax import MiniMaxLLMClient # noqa: F811
|
||||
|
||||
adapter = get_model_adapter("proxy/minimax", "MiniMax-M2.7")
|
||||
assert adapter is not None
|
||||
|
||||
def test_model_list_contains_m27_highspeed(self):
|
||||
from dbgpt.model.proxy.llms.minimax import MiniMaxLLMClient # noqa: F811
|
||||
from dbgpt.model.adapter.base import get_model_adapter
|
||||
from dbgpt.model.proxy.llms.minimax import MiniMaxLLMClient # noqa: F811
|
||||
|
||||
adapter = get_model_adapter("proxy/minimax", "MiniMax-M2.7-highspeed")
|
||||
assert adapter is not None
|
||||
|
||||
def test_model_list_contains_m25(self):
|
||||
from dbgpt.model.proxy.llms.minimax import MiniMaxLLMClient # noqa: F811
|
||||
from dbgpt.model.adapter.base import get_model_adapter
|
||||
from dbgpt.model.proxy.llms.minimax import MiniMaxLLMClient # noqa: F811
|
||||
|
||||
adapter = get_model_adapter("proxy/minimax", "MiniMax-M2.5")
|
||||
assert adapter is not None
|
||||
|
||||
def test_model_list_contains_m25_highspeed(self):
|
||||
from dbgpt.model.proxy.llms.minimax import MiniMaxLLMClient # noqa: F811
|
||||
from dbgpt.model.adapter.base import get_model_adapter
|
||||
from dbgpt.model.proxy.llms.minimax import MiniMaxLLMClient # noqa: F811
|
||||
|
||||
adapter = get_model_adapter("proxy/minimax", "MiniMax-M2.5-highspeed")
|
||||
assert adapter is not None
|
||||
|
||||
Reference in New Issue
Block a user