@opencode-ai/ai
Advanced tools
@@ -384,6 +384,5 @@ import { Effect, Option, Schema } from "effect"; | ||
| if (message.role === "user") { | ||
| input.push({ | ||
| role: "user", | ||
| content: yield* Effect.forEach(message.content, (part) => lowerUserContent(part, request, extension)), | ||
| }); | ||
| const content = yield* Effect.forEach(message.content, (part) => lowerUserContent(part, request, extension)); | ||
| if (content.length > 0) | ||
| input.push({ role: "user", content }); | ||
| continue; | ||
@@ -390,0 +389,0 @@ } |
@@ -186,3 +186,5 @@ import { Cause, Context, Effect, Layer, Schema, Stream } from "effect"; | ||
| const original = applyCachePolicy(resolveRequestOptions(request)); | ||
| const resolved = LLMRequest.update(original, sanitizeSurrogates({ ...LLMRequest.input(original), model: undefined })); | ||
| const sanitized = LLMRequest.update(original, sanitizeSurrogates({ ...LLMRequest.input(original), model: undefined })); | ||
| const tools = [...new Map(sanitized.tools.map((tool) => [tool.name, tool])).values()]; | ||
| const resolved = tools.length === sanitized.tools.length ? sanitized : LLMRequest.update(sanitized, { tools }); | ||
| const route = resolved.model.route; | ||
@@ -189,0 +191,0 @@ const body = yield* route.body |
+3
-3
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "version": "0.0.0-dev-18704", | ||
| "version": "0.0.0-dev-18706", | ||
| "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-18704", | ||
| "@opencode-ai/http-recorder": "0.0.0-dev-18706", | ||
| "@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-18704", | ||
| "@opencode-ai/schema": "0.0.0-dev-18706", | ||
| "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.
1546843
0.01%35663
0+ Added
- Removed