mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
test(router): remove router plugin catalog test
This commit is contained in:
parent
c7551197a3
commit
4567d02520
1 changed files with 0 additions and 31 deletions
|
|
@ -1,31 +0,0 @@
|
|||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROUTER_PLUGINS_PATH = Path(__file__).parents[2] / "router_plugins.json"
|
||||
|
||||
|
||||
def test_router_plugins_json_is_valid_reference_catalog():
|
||||
data = json.loads(ROUTER_PLUGINS_PATH.read_text())
|
||||
|
||||
assert isinstance(data, dict)
|
||||
assert "language-detector" in data
|
||||
|
||||
language_detector = data["language-detector"]
|
||||
assert isinstance(language_detector, dict)
|
||||
assert language_detector["name"] == "litellm-plugin-language-detector"
|
||||
assert language_detector["source"] == {
|
||||
"source": "github",
|
||||
"repo": "jeann2013/language-detector",
|
||||
}
|
||||
assert language_detector["config"]["proxy"]["router_settings.plugins"] == [
|
||||
"litellm_plugin_language_detector.plugin.language_detector_plugin"
|
||||
]
|
||||
assert language_detector["config"]["proxy"]["complexity_router_config.plugins"] == [
|
||||
"litellm_plugin_language_detector.plugin.language_detector_plugin"
|
||||
]
|
||||
assert language_detector["signals"]["language-detector"] == {
|
||||
"language": "ISO-639-1 code or unknown",
|
||||
"confidence": "float from 0.0 to 1.0",
|
||||
"detector": "backend name",
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue