Skip to content

Commit af68aca

Browse files
Changed term
1 parent 9160a40 commit af68aca

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,14 @@ const openai = createOpenAI({
212212
scanMode: 'combined',
213213
scanAction: 'block',
214214
policyAction: 'block',
215-
routeAction: 'auto', // Enable intelligent routing
215+
routeAction: 'auto', // Enable smart routing
216216
cacheResponse: true, // Enable response caching
217217
cacheTTL: 3600 // Cache for 1 hour
218218
}
219219
});
220220
```
221221

222-
#### Intelligent Routing
222+
#### Smart Routing
223223
Let LockLLM automatically select the best model for each request based on task type and complexity. Set `routeAction: 'auto'` to enable, or `routeAction: 'custom'` to use your own routing rules from the dashboard.
224224

225225
#### Response Caching

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ LockLLM provides production-ready AI security that integrates seamlessly into yo
8181
| **Custom Endpoints** | Configure custom URLs for any provider (self-hosted, Azure, private clouds) |
8282
| **Custom Content Policies** | Define your own content rules in the dashboard and enforce them automatically across all providers |
8383
| **AI Abuse Detection** | Detect bot-generated content, repetition attacks, and resource exhaustion from your end-users |
84-
| **Intelligent Routing** | Automatically select the optimal model for each request based on task type and complexity to save costs |
84+
| **Smart Routing** | Automatically select the optimal model for each request based on task type and complexity to save costs |
8585
| **PII Detection & Redaction** | Detect and automatically redact emails, phone numbers, SSNs, credit cards, and other personal information before they reach AI providers |
8686
| **Prompt Compression** | Reduce token usage with TOON (JSON-to-compact-notation, free), Compact (advanced compression, $0.0001/use), or Combined (TOON then Compact for maximum reduction, $0.0001/use) methods |
8787
| **Response Caching** | Cache identical LLM responses to reduce costs and latency on repeated queries |
@@ -660,7 +660,7 @@ interface ScanResponse {
660660
scan_warning?: ScanWarning;
661661
// Present when abuse detection is enabled and abuse found
662662
abuse_warnings?: AbuseWarning;
663-
// Present when intelligent routing is enabled
663+
// Present when smart routing is enabled
664664
routing?: { task_type: string; complexity: number; selected_model?: string; };
665665
// Present when PII detection is enabled
666666
pii_result?: PIIResult;
@@ -971,7 +971,7 @@ const openai = createOpenAI({
971971
piiAction: 'strip', // Automatically redact PII
972972
compressionAction: 'compact', // Compress prompts (free: 'toon', paid: 'compact' | 'combined')
973973
compressionRate: 0.5, // Compression rate 0.3-0.7 (compact/combined only)
974-
routeAction: 'auto' // Enable intelligent routing
974+
routeAction: 'auto' // Enable smart routing
975975
}
976976
});
977977
```
@@ -993,7 +993,7 @@ const openai = createOpenAI({
993993
- `piiAction` - Controls PII detection (opt-in): `'strip'` | `'block'` | `'allow_with_warning'` | `null`
994994
- `compressionAction` - Controls prompt compression (opt-in): `'toon'` | `'compact'` | `'combined'` | `null`
995995
- `compressionRate` - Compression rate for compact/combined method: `0.3` - `0.7` (default: `0.5`)
996-
- `routeAction` - Controls intelligent routing: `'disabled'` | `'auto'` | `'custom'`
996+
- `routeAction` - Controls smart routing: `'disabled'` | `'auto'` | `'custom'`
997997

998998
**Default Behavior (no headers):**
999999
- Scan Mode: `combined` (check both core + policies)

examples/advanced-options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function proxyWithAdvancedOptions() {
8787
scanAction: 'block', // Block injection attacks
8888
policyAction: 'block', // Block policy violations
8989
abuseAction: 'allow_with_warning', // Detect abuse but don't block
90-
routeAction: 'auto', // Enable intelligent routing
90+
routeAction: 'auto', // Enable smart routing
9191
},
9292
});
9393

@@ -139,7 +139,7 @@ async function defaultBehavior() {
139139
* - Scan Action: allow_with_warning (detect threats but don't block)
140140
* - Policy Action: allow_with_warning (detect violations but don't block)
141141
* - Abuse Action: null (abuse detection disabled, opt-in only)
142-
* - Route Action: disabled (no intelligent routing)
142+
* - Route Action: disabled (no smart routing)
143143
*/
144144

145145
try {

src/types/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export interface ProxyRequestOptions extends RequestOptions {
7777
policyAction?: ScanAction;
7878
/** Abuse detection action (opt-in, default: null) - When null, abuse detection is disabled */
7979
abuseAction?: ScanAction | null;
80-
/** Routing action (default: disabled) - No intelligent routing unless explicitly enabled */
80+
/** Routing action (default: disabled) - No smart routing unless explicitly enabled */
8181
routeAction?: RouteAction;
8282
/** PII detection action (opt-in, default: null) - When null, PII detection is disabled */
8383
piiAction?: PIIAction | null;

src/utils/proxy-headers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { ProxyRequestOptions, ProxyResponseMetadata } from '../types/common
1212
* - Scan Action: allow_with_warning (detect threats but don't block)
1313
* - Policy Action: allow_with_warning (detect violations but don't block)
1414
* - Abuse Action: null (abuse detection disabled, opt-in only)
15-
* - Route Action: disabled (no intelligent routing)
15+
* - Route Action: disabled (no smart routing)
1616
*/
1717
export function buildLockLLMHeaders(options?: ProxyRequestOptions): Record<string, string> {
1818
const headers: Record<string, string> = {};
@@ -37,7 +37,7 @@ export function buildLockLLMHeaders(options?: ProxyRequestOptions): Record<strin
3737
headers['x-lockllm-abuse-action'] = options.abuseAction;
3838
}
3939

40-
// Route action header (controls intelligent routing)
40+
// Route action header (controls smart routing)
4141
if (options?.routeAction) {
4242
headers['x-lockllm-route-action'] = options.routeAction;
4343
}

0 commit comments

Comments
 (0)