We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 55fabc1 + 124a76f commit 35450a3Copy full SHA for 35450a3
1 file changed
veadk/tools/builtin_tools/llm_shield.py
@@ -53,19 +53,18 @@ class LLMShieldPlugin(BasePlugin):
53
```
54
"""
55
56
- def __init__(self, region: str = "cn-beijing", timeout: int = 50) -> None:
+ def __init__(self, timeout: int = 50) -> None:
57
58
Initialize the LLM Shield Plugin.
59
60
Args:
61
- region (str, optional): The service region. Defaults to "cn-beijing".
62
timeout (int, optional): Request timeout in seconds. Defaults to 50.
63
64
self.name = "LLMShieldPlugin"
65
super().__init__(name=self.name)
66
67
self.appid = getenv("TOOL_LLM_SHIELD_APP_ID")
68
- self.region = region
+ self.region = getenv("TOOL_LLM_SHIELD_REGION", "cn-beijing")
69
self.timeout = timeout
70
self.url = getenv(
71
"TOOL_LLM_SHIELD_URL",
0 commit comments