@opencode-ai/ai
Advanced tools
@@ -37,3 +37,3 @@ // Apply an `LLMRequest.cache` policy by injecting `CacheHint`s onto the parts | ||
| // whole policy pass for these — emitting hints would be harmless but pointless. | ||
| const RESPECTS_INLINE_HINTS = new Set(["anthropic-messages", "bedrock-converse", "openrouter"]); | ||
| const RESPECTS_INLINE_HINTS = new Set(["anthropic-messages", "google-vertex-messages", "bedrock-converse", "openrouter"]); | ||
| const makeHint = (ttlSeconds) => ttlSeconds !== undefined ? new CacheHint({ type: "ephemeral", ttlSeconds }) : new CacheHint({ type: "ephemeral" }); | ||
@@ -40,0 +40,0 @@ const markLastTool = (tools, hint, budget) => { |
@@ -377,4 +377,3 @@ import { Effect, Schema } from "effect"; | ||
| const lowerMessages = Effect.fn("OpenResponses.lowerMessages")(function* (request, extension) { | ||
| const system = request.system.length === 0 ? [] : [{ role: "system", content: ProviderShared.joinText(request.system) }]; | ||
| const input = [...system]; | ||
| const input = []; | ||
| const providerMetadataKey = request.model.route.providerMetadataKey ?? "openresponses"; | ||
@@ -500,6 +499,7 @@ for (const message of request.messages) { | ||
| const options = OpenResponsesOptions.resolve(request); | ||
| const instructions = ProviderShared.joinText(request.system); | ||
| const cacheKey = ProviderShared.promptCacheKey(request); | ||
| const parallelToolCalls = resolveParallelToolCalls(request); | ||
| return { | ||
| ...(options.instructions ? { instructions: options.instructions } : {}), | ||
| ...(instructions ? { instructions } : {}), | ||
| ...(options.store !== undefined ? { store: options.store } : {}), | ||
@@ -506,0 +506,0 @@ ...(options.metadata ? { metadata: options.metadata } : {}), |
@@ -29,3 +29,2 @@ import { Schema } from "effect"; | ||
| export declare const Options: Schema.Struct<{ | ||
| readonly instructions: Schema.optional<Schema.String>; | ||
| readonly store: Schema.optional<Schema.Boolean>; | ||
@@ -32,0 +31,0 @@ readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>; |
@@ -31,3 +31,2 @@ import { Option, Schema } from "effect"; | ||
| export const Options = Schema.Struct({ | ||
| instructions: Schema.optional(Schema.String), | ||
| store: Schema.optional(Schema.Boolean), | ||
@@ -34,0 +33,0 @@ metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)), |
+3
-3
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "version": "0.0.0-dev-18237", | ||
| "version": "0.0.0-dev-18239", | ||
| "name": "@opencode-ai/ai", | ||
@@ -33,3 +33,3 @@ "type": "module", | ||
| "@effect/platform-node": "4.0.0-rc.111", | ||
| "@opencode-ai/http-recorder": "0.0.0-dev-18237", | ||
| "@opencode-ai/http-recorder": "0.0.0-dev-18239", | ||
| "@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-18237", | ||
| "@opencode-ai/schema": "0.0.0-dev-18239", | ||
| "aws4fetch": "1.0.20", | ||
@@ -46,0 +46,0 @@ "effect": "4.0.0-rc.111", |
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.
1314794
-0.01%30162
-0.01%+ Added
- Removed