Skip to content

Release v0.10.9

Latest

Choose a tag to compare

@iamstuffed iamstuffed released this 29 May 16:25

LeapSDK v0.10.9

Added

  • Image input beyond JPEG. New content types ChatMessageContent.ImagePng and ImageRgb8, and Swift factories fromPNGData(_:maxLongSide:), fromImageData(_:maxLongSide:) (sniffs JPEG/PNG by magic bytes; rejects HEIC/AVIF/unrecognized as a catchable error), and fromRGB8(_:width:height:maxLongSide:) for pre-decoded pixels. (#264, #267)
  • Engine-side maxLongSide resize (Lanczos3, aspect-preserving, no upscale) on the JPEG/PNG/RGB8 paths — the engine decodes and downscales, so callers no longer re-encode or pick a resampler. Honored on every platform. (#264)

Fixed

  • iOS launch crash affecting v0.10.5–v0.10.8: dyld: Library not loaded: @rpath/inference_engine_llamacpp_backend.framework/…. The embedded libinference_engine.dylib now references the dylib that's actually shipped, so apps no longer crash at startup. (#265)
  • LeapDownloaderConfig(…) / ModelDownloader() hang (100% CPU at construction) caused by a Swift convenience-init recursion. (#262)

Changed — breaking (Swift)

  • LeapDownloaderConfig(…)LeapDownloaderConfig.with(…) static factory (the same-signature convenience init was the source of the hang above). (#262)
  • Image/audio factories are now throwsfromJPEGData, fromPNGData, fromImageData, fromRGB8, fromWAVData, fromFloatSamples, audio(data:format:). Add try (do/catch or try?); they now surface validation failures as catchable Swift errors instead of crashing the process. (#264, #267)