@opencode-ai/ai
Advanced tools
@@ -849,11 +849,11 @@ import { Effect, Schema } from "effect"; | ||
| } | ||
| const contentFiltered = finishReason?.normalized === "content-filter"; | ||
| const incompleteTools = finishReason?.normalized === "content-filter" || finishReason?.normalized === "length"; | ||
| if (finishReason !== undefined && | ||
| !contentFiltered && | ||
| !incompleteTools && | ||
| state.finishReason === undefined && | ||
| Object.keys(pendingTools).length) | ||
| return yield* ProviderShared.eventError(ADAPTER, "OpenAI Chat tool call delta is missing id or name", ProviderShared.encodeJson(event)); | ||
| // A content filter terminates the response without confirming pending tool calls. | ||
| // Filtering or truncation terminates the response without confirming pending tool calls. | ||
| const finished = finishReason !== undefined && | ||
| !contentFiltered && | ||
| !incompleteTools && | ||
| state.finishReason === undefined && | ||
@@ -860,0 +860,0 @@ Object.keys(tools).length > 0 |
+3
-3
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "version": "0.0.0-dev-18660", | ||
| "version": "0.0.0-dev-18661", | ||
| "name": "@opencode-ai/ai", | ||
@@ -33,3 +33,3 @@ "type": "module", | ||
| "@effect/platform-node": "4.0.0-rc.112", | ||
| "@opencode-ai/http-recorder": "0.0.0-dev-18660", | ||
| "@opencode-ai/http-recorder": "0.0.0-dev-18661", | ||
| "@tsconfig/bun": "1.0.9", | ||
@@ -43,3 +43,3 @@ "@types/bun": "1.3.13", | ||
| "@smithy/util-utf8": "4.2.2", | ||
| "@opencode-ai/schema": "0.0.0-dev-18660", | ||
| "@opencode-ai/schema": "0.0.0-dev-18661", | ||
| "aws4fetch": "1.0.20", | ||
@@ -46,0 +46,0 @@ "effect": "4.0.0-rc.112", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1481862
0+ Added
- Removed