Skip to content

Commit 6c2c009

Browse files
committed
fix: model name in Guardrails tests
1 parent b9a7046 commit 6c2c009

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/model_explainability/guardrails/test_guardrails.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
BUILTIN_DETECTOR_CONFIG,
2727
MinIo,
2828
QWEN_MODEL_NAME,
29-
QWEN_ISVC_NAME,
3029
)
3130
from utilities.plugins.constant import OpenAIEnpoints
3231

@@ -246,7 +245,7 @@ def test_guardrails_builtin_detectors_negative_detection(
246245
"config.yaml": yaml.dump({
247246
"openai": {
248247
"service": {
249-
"hostname": f"{QWEN_ISVC_NAME}-predictor",
248+
"hostname": f"{QWEN_MODEL_NAME}-predictor",
250249
"port": 8032,
251250
}
252251
},
@@ -383,7 +382,7 @@ def test_guardrails_standalone_detector_endpoint(
383382
"config.yaml": yaml.dump({
384383
"openai": {
385384
"service": {
386-
"hostname": f"{QWEN_ISVC_NAME}-predictor",
385+
"hostname": f"{QWEN_MODEL_NAME}-predictor",
387386
"port": 8032,
388387
}
389388
},

utilities/constants.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,9 @@ class RunTimeConfig:
368368
}
369369

370370
QWEN_ISVC_NAME = "qwen-isvc"
371+
QWEN_MODEL_NAME: str = "qwen25-05b-instruct"
372+
371373
CHAT_GENERATION_CONFIG: Dict[str, Any] = {
372-
"service": {"hostname": f"{QWEN_ISVC_NAME}-predictor", "port": 8032, "request_timeout": 600}
374+
"service": {"hostname": f"{QWEN_MODEL_NAME}-predictor", "port": 8032, "request_timeout": 600}
373375
}
374376
TRUSTYAI_SERVICE_NAME: str = "trustyai-service"
375-
QWEN_MODEL_NAME: str = "qwen25-05b-instruct"

0 commit comments

Comments
 (0)