@mnemom/agent-integrity-protocol 0.1.1 → 0.1.2
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1299,7 +1299,7 @@ function createClient(config) {
|
|
|
1299
1299
|
async check(responseBody, provider) {
|
|
1300
1300
|
if (destroyed) throw new Error("AIP client has been destroyed");
|
|
1301
1301
|
const adapter = provider ? registry.get(provider) : registry.detectFromUrl(config.analysis_llm.base_url);
|
|
1302
|
-
const thinking = adapter.extractThinking(responseBody);
|
|
1302
|
+
const thinking = adapter.extractThinking(responseBody) ?? adapter.extractThinkingFromStream(responseBody);
|
|
1303
1303
|
if (!thinking) {
|
|
1304
1304
|
return buildSyntheticSignal(config, window, "clear");
|
|
1305
1305
|
}
|