Skip to content

@onlyworlds/sdk 4.145.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 11:28
· 283 commits to main since this release

Added

  • err.refusals on an OwApiError that isAnswerNotParsed: when an AI use the server reads itself (subs-captain, lens) gives up with 422 answer_not_parsed, each answer it refused, in order, as an OwAiRefusal (word, the provider's stop_reason, output_tokens). An answer cut off at max_tokens now reads apart from one that finished in the wrong shape. Never the answer's text; a replay under the same idempotency key carries the same list. Undefined for any other error or when none is sent; a row not in that shape is left out.
  • OwAiRefusal, exported, and refusals on OwErrorBody, as the API document declares the error envelope (a /bulk slot's error included).