🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@opencode-ai/ai

Package Overview
Dependencies
Maintainers
2
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/ai - npm Package Compare versions

Comparing version
0.0.0-next-16048
to
0.0.0-next-16051
+3
-3
dist/protocols/openai-responses.d.ts

@@ -237,5 +237,5 @@ import { Schema } from "effect";

readonly service_tier?: string | null | undefined;
readonly incomplete_details?: Schema.Struct.ReadonlySide<{
readonly reason: Schema.String;
}, "Type"> | null | undefined;
readonly incomplete_details?: {
readonly reason?: string | undefined;
} | null | undefined;
} | undefined;

@@ -242,0 +242,0 @@ readonly message?: string | undefined;

@@ -197,3 +197,3 @@ import { Effect, Encoding, Schema } from "effect";

service_tier: optionalNull(Schema.String),
incomplete_details: optionalNull(Schema.Struct({ reason: Schema.String })),
incomplete_details: optionalNull(Schema.Struct({ reason: Schema.optional(Schema.String) })),
usage: optionalNull(OpenAIResponsesUsage),

@@ -493,3 +493,3 @@ error: optionalNull(OpenAIResponsesErrorPayload),

if (reason === undefined || reason === null)
return hasFunctionCall ? "tool-calls" : "stop";
return hasFunctionCall ? "tool-calls" : event.type === "response.incomplete" ? "unknown" : "stop";
if (reason === "max_output_tokens")

@@ -496,0 +496,0 @@ return "length";

{
"$schema": "https://json.schemastore.org/package.json",
"version": "0.0.0-next-16048",
"version": "0.0.0-next-16051",
"name": "@opencode-ai/ai",

@@ -29,3 +29,3 @@ "type": "module",

"@effect/platform-node": "4.0.0-beta.98",
"@opencode-ai/http-recorder": "0.0.0-next-16048",
"@opencode-ai/http-recorder": "0.0.0-next-16051",
"@tsconfig/bun": "1.0.9",

@@ -39,3 +39,3 @@ "@types/bun": "1.3.13",

"@smithy/util-utf8": "4.2.2",
"@opencode-ai/schema": "0.0.0-next-16048",
"@opencode-ai/schema": "0.0.0-next-16051",
"aws4fetch": "1.0.20",

@@ -42,0 +42,0 @@ "effect": "4.0.0-beta.98",