Release 1.1.2

github-actions[bot] committed May 22, 2026 at 21:58 UTC 534c412ee719e1a4c7c5f1f8b24c1c4bf5188878
2 files changed +36 -2
Package.swift
+2 -2
@@ -24,9 +24,9 @@ let packageRoot = URL(fileURLWithPath: #filePath).deletingLastPathComponent()
24 let localFrameworkPath = "OndeFramework.xcframework"
25 let localFrameworkAbsolutePath = packageRoot.appendingPathComponent(localFrameworkPath).path
26 let releaseFrameworkURL =
27 - "https://github.com/ondeinference/onde/releases/download/1.1.1/OndeFramework.xcframework.zip"
27 + "https://github.com/ondeinference/onde/releases/download/1.1.2/OndeFramework.xcframework.zip"
28 let releaseFrameworkChecksum =
29 - "477623ec242d45dbfe54d3f8e36375193c1933721ffc4d3f002f66fa3065ebea"
29 + "17bf2297f5ec256c1a6d6fd3d67fdcc716e7c40dccdfd832eff804485f2223aa"
30
31 let ondeFrameworkTarget: Target
32 if FileManager.default.fileExists(atPath: localFrameworkAbsolutePath) {
Sources/Onde/onde.swift
+34
@@ -2696,6 +2696,25 @@ public func assistantMessage(content: String) -> ChatMessage {
2696 )
2697 })
2698 }
2699 +/**
2700 + * Configure the HF cache directory for sandboxed platforms.
2701 + *
2702 + * Call this before any model-loading method (`load_gguf_model`,
2703 + * `load_default_model`, etc.) on iOS, tvOS, and Android where the
2704 + * default `~/.cache/huggingface` path is inaccessible.
2705 + *
2706 + * `path` should be a writable app data directory (e.g. the App Group
2707 + * container or Application Support directory on Apple platforms).
2708 + *
2709 + * This sets the `HF_HOME` and `HF_HUB_CACHE` environment variables
2710 + * and creates the directory structure.
2711 + */
2712 +public func configureCacheDir(path: String) {try! rustCall() {
2713 + uniffi_onde_fn_func_configure_cache_dir(
2714 + FfiConverterString.lower(path),$0
2715 + )
2716 +}
2717 +}
2718 /**
2719 * Return the platform-appropriate default GGUF model configuration.
2720 *
@@ -2735,6 +2754,15 @@ public func mobileSamplingConfig() -> SamplingConfig {
2754 )
2755 })
2756 }
2757 +/**
2758 + * Return the Qwen 2.5 0.5B GGUF model configuration (~380 MB).
2759 + */
2760 +public func qwen2505bConfig() -> GgufModelConfig {
2761 + return try! FfiConverterTypeGgufModelConfig_lift(try! rustCall() {
2762 + uniffi_onde_fn_func_qwen25_0_5b_config($0
2763 + )
2764 +})
2765 +}
2766 /**
2767 * Return the Qwen 2.5 1.5B GGUF model configuration (~941 MB).
2768 */
@@ -2835,6 +2863,9 @@ private let initializationResult: InitializationResult = {
2863 if (uniffi_onde_checksum_func_assistant_message() != 47135) {
2864 return InitializationResult.apiChecksumMismatch
2865 }
2866 + if (uniffi_onde_checksum_func_configure_cache_dir() != 6269) {
2867 + return InitializationResult.apiChecksumMismatch
2868 + }
2869 if (uniffi_onde_checksum_func_default_model_config() != 34766) {
2870 return InitializationResult.apiChecksumMismatch
2871 }
@@ -2847,6 +2878,9 @@ private let initializationResult: InitializationResult = {
2878 if (uniffi_onde_checksum_func_mobile_sampling_config() != 46137) {
2879 return InitializationResult.apiChecksumMismatch
2880 }
2881 + if (uniffi_onde_checksum_func_qwen25_0_5b_config() != 53289) {
2882 + return InitializationResult.apiChecksumMismatch
2883 + }
2884 if (uniffi_onde_checksum_func_qwen25_1_5b_config() != 41668) {
2885 return InitializationResult.apiChecksumMismatch
2886 }