@decocms/runtime 1.2.14 → 1.2.15
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/decopilot.ts +1 -1
- package/src/tools.ts +0 -7
package/package.json
CHANGED
package/src/decopilot.ts
CHANGED
|
@@ -105,7 +105,7 @@ export async function streamAgent(
|
|
|
105
105
|
|
|
106
106
|
const credentialId = params.credentialId ?? config.credentialId;
|
|
107
107
|
const thinking = params.thinking ?? config.thinking;
|
|
108
|
-
const hasModels =
|
|
108
|
+
const hasModels = thinking?.id;
|
|
109
109
|
|
|
110
110
|
const request = {
|
|
111
111
|
messages: params.messages,
|
package/src/tools.ts
CHANGED
|
@@ -1050,9 +1050,6 @@ export const createMCPServer = <
|
|
|
1050
1050
|
|
|
1051
1051
|
// Only close transport for non-streaming responses
|
|
1052
1052
|
if (!isStreaming) {
|
|
1053
|
-
console.debug(
|
|
1054
|
-
"[MCP Transport] Closing transport for non-streaming response",
|
|
1055
|
-
);
|
|
1056
1053
|
try {
|
|
1057
1054
|
await transport.close?.();
|
|
1058
1055
|
} catch {
|
|
@@ -1063,10 +1060,6 @@ export const createMCPServer = <
|
|
|
1063
1060
|
return response;
|
|
1064
1061
|
} catch (error) {
|
|
1065
1062
|
// On error, always try to close transport to prevent leaks
|
|
1066
|
-
console.debug(
|
|
1067
|
-
"[MCP Transport] Closing transport due to error:",
|
|
1068
|
-
error instanceof Error ? error.message : error,
|
|
1069
|
-
);
|
|
1070
1063
|
try {
|
|
1071
1064
|
await transport.close?.();
|
|
1072
1065
|
} catch {
|