File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
tests/model_explainability/guardrails Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2626 BUILTIN_DETECTOR_CONFIG ,
2727 MinIo ,
2828 QWEN_MODEL_NAME ,
29- QWEN_ISVC_NAME ,
3029)
3130from 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 },
Original file line number Diff line number Diff line change @@ -368,8 +368,9 @@ class RunTimeConfig:
368368}
369369
370370QWEN_ISVC_NAME = "qwen-isvc"
371+ QWEN_MODEL_NAME : str = "qwen25-05b-instruct"
372+
371373CHAT_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}
374376TRUSTYAI_SERVICE_NAME : str = "trustyai-service"
375- QWEN_MODEL_NAME : str = "qwen25-05b-instruct"
You can’t perform that action at this time.
0 commit comments