ai-warden 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/client.js +5 -5
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -130,15 +130,15 @@ class AIWardenClient {
|
|
|
130
130
|
* Validate content against Prompt Shield API
|
|
131
131
|
*/
|
|
132
132
|
async validate(content, options = {}) {
|
|
133
|
-
//
|
|
134
|
-
if (!this.initialized || this._isSettingsExpired()) {
|
|
135
|
-
|
|
136
|
-
}
|
|
133
|
+
// Skip settings for now - API will use defaults
|
|
134
|
+
// if (!this.initialized || this._isSettingsExpired()) {
|
|
135
|
+
// await this.init();
|
|
136
|
+
// }
|
|
137
137
|
|
|
138
138
|
const url = `${this.apiUrl}/api/validate`;
|
|
139
139
|
const payload = {
|
|
140
140
|
text: content, // API expects 'text', not 'content'
|
|
141
|
-
settings: this.settings,
|
|
141
|
+
// settings: this.settings, // Skip settings for now
|
|
142
142
|
...options
|
|
143
143
|
};
|
|
144
144
|
|