Skip to content

Releases

Moss iOS SDK v0.17.0

Choose a tag to compare

@moss-release-bot moss-release-bot released this 23 Nov 18:26
0129453

Moss iOS SDK v0.17.0.

SwiftPM consumption

.package(url: "https://github.com/usemoss/moss", from: "0.17.0"),

Package.swift binary target

.binaryTarget(
    name: "MossC",
    url: "https://github.com/usemoss/moss/releases/download/v0.17.0/Moss.xcframework.zip",
    checksum: "b9718f1b5bb6ad36125747c7a44ed04fc78af5fc2533500ab6296bf371cf1ef1"
)

SHA-256: b9718f1b5bb6ad36125747c7a44ed04fc78af5fc2533500ab6296bf371cf1ef1

What's in the zip

  • Moss.xcframework with the iOS device (arm64) and simulator (arm64) slices
  • LICENSE.txt - the license of the xcframework
  • LICENSE-THIRD-PARTY.txt - licenses of the third-party code both slices link

License

The xcframework is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License.

Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)

Moss Android SDK v0.33.0

Choose a tag to compare

@moss-release-bot moss-release-bot released this 23 Nov 17:25
59eccaa

Moss Android SDK v0.33.0.

AAR: moss-android-0.33.0.aar (arm64-v8a, minSdk 24, namespace dev.usemoss.moss).

SHA-256: a535bb8675ec4544fab24f016ff3e625bd45e394272dd6cc112e885a68738c08

Added

  • ClientOptions, the new last argument of both MossClient constructors,
    has keepModels, off by default. With it on, each embedding model the client
    loads that the project's clients share stays loaded after the client closes,
    so the next client of the project in the app loads a cached index without
    opening the model again, once its own grant for the same artifact arrives,
    until the grant the model was opened under is within 30 seconds of expiring,
    at most about four and a half minutes after it was opened. A private copy,
    which a client opens while another client is still opening the same model,
    is not kept. Kotlin code compiled against an earlier release that calls the
    authenticator constructor without baseUrl must be compiled again, with no
    change to its source.
  • releaseMemory on an open client and the app's trim callbacks free at once
    each kept model that no client or session holds. The first client built with
    keepModels registers trim callbacks for the process that stay after every
    client closes, so a trim frees kept models while no client is open too.

Changed

  • Breaking change: MossClient.session throws the MossException of
    its load of the cloud index of the same name when that load fails, for
    example code NETWORK when the Moss cloud cannot be reached or
    DESERIALIZATION when the index's model artifact provenance does not
    match. It used to return an empty session, which a later pushIndex could
    push over the cloud index. An index that does not exist yet, or a name the
    cloud cannot address, still opens an empty session, and
    SessionOptions(autoLoadOnInit = false) skips the load. A foundation model
    such as the default moss-litelm still checks the credentials when the
    session opens, over the network for a client with a project key, so only
    modelId = "custom" opens with no network. Requires a packed
    libmoss_jni.so built from the matching libmoss.
  • A client or session that reuses an embedding model another client of the
    project holds, or one that keepModels kept, now asks the issuer for its own
    grant first. That adds one round trip and still skips the decrypt and session
    start. A client the issuer refuses now fails to load the model instead of
    using one another client opened.

Fixed

  • A session keeps its saved snapshot to itself while it serves vectors from
    it, also after saveToDisk writes a new generation. loadFromDisk and
    saveToDisk of the same session name and cache path in a second session,
    in this app or another process, throw MossException with code INTERNAL
    and the message "The saved session snapshot is open in another session."
    until the first session's native teardown finishes. close() returns at
    once and queues that teardown, which also sends the session's final
    telemetry, for up to 2 seconds, so a load or save right after close()
    can still throw. A save used to replace the file that held the lock, so
    after one save a second session could load and save the same snapshot
    beside the first and overwrite its saves. The lock is the file
    session.lock in the session's directory. Loading from a directory the
    app cannot write works when the snapshot already has its session.lock,
    which every save writes, and fails otherwise. A snapshot that an earlier
    version saved has none. Add an empty session.lock file to its directory,
    or load a copy: while nothing saves to the snapshot, copy its directory
    under the same name into another directory, make the copy writable by the
    app, and pass that other directory as the cache path. A .mossvec that
    loadIndex maps from cachePath is locked through a .lock file beside
    it. A second client that loads the same index from the same cachePath
    while the first holds it does not throw: it keeps that index's vectors in
    memory instead of mapping the file. Earlier versions take neither lock
    file, so a process on one of them and a process on this version do not
    lock each other out. Keep every process on an earlier version stopped
    while a process on this version has the same cache path open. Requires a
    packed libmoss_jni.so built from the matching libmoss.

Add it to an app module with implementation(files(...)). It is a file AAR, not a Maven Central package.

License

The AAR is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License. LICENSE.txt holds the terms. The AAR carries it at META-INF/LICENSE.txt, and at assets/moss/LICENSE.txt beside the licenses of the third-party code it links.

Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)

libmoss v0.33.0

Choose a tag to compare

@moss-release-bot moss-release-bot released this 23 Nov 16:00
75e5fe4

Precompiled C SDK binaries for the Moss SDK.

Added

  • moss_client_new_with_options, moss_client_new_with_device_id_and_options, moss_client_new_with_authenticator_and_options and moss_client_new_with_authenticator_device_id_and_options take the arguments of moss_client_new, moss_client_new_with_device_id, moss_client_new_with_authenticator and moss_client_new_with_authenticator_and_device_id, plus a const MossClientOptions * before out. NULL options are the defaults, which the constructors without options use. Zero a MossClientOptions, then set struct_size to sizeof(MossClientOptions) and version to MOSS_CLIENT_OPTIONS_VERSION, 1. A smaller struct_size, another version or an unknown flag bit fails with ERR_INVALID_ARG. The MOSS_CLIENT_OPTIONS_FLAG_KEEP_MODELS flag, off by default, keeps each model the client loads after the last client or session that uses it is freed, for later clients of the same project in the process, until the grant it was opened under is within 30 seconds of expiring. A client created then loads a cached index without opening the model again, once its own grant for the same artifact arrives. The flag works on every platform, iOS and Android included.
  • moss_client_release_memory frees at once each kept model that no client or session holds. With a NULL client it frees only those models and writes 0 to out_unloaded, instead of failing with ERR_NULL_POINTER, so a host can answer memory pressure while no client is open.

Changed

  • Breaking change: moss_client_session and moss_client_session_v2 fail when the load of the cloud index of the same name fails, with that load's code, and leave *out NULL. For example, ERR_CLOUD when the Moss cloud cannot be reached, ERR_UNAUTHORIZED when the service rejects the credentials or the project is over its usage limit, ERR_INVALID_ARG when the service refuses the index's model artifact with HTTP 409, and ERR_DESERIALIZATION when the artifact's provenance is malformed or does not match the downloaded index. They used to log the failure and return an empty session, which a later moss_session_push_index could push over the cloud index. An index that does not exist yet, or a name the cloud cannot address, still opens an empty session. MOSS_SESSION_OPTIONS_V2_FLAG_SKIP_AUTO_LOAD_ON_INIT on moss_client_session_v2 skips the load, which moss_client_session cannot; unless model_id is custom, opening still checks the project credentials, which a client with a project key does over the network.
  • moss_set_model_cache_dir() installs the panic hook, as moss_sdk_version() does, so a host that never asks for the version still gets the panic message in moss-panic.log in the model cache directory. A panic aborts the process, as it did before, and the README says so under Error Handling.
  • A client or session that reuses an embedding model another client of the project holds, or one that MOSS_CLIENT_OPTIONS_FLAG_KEEP_MODELS kept, now asks the issuer for its own grant first. That adds one round trip and still skips the decrypt and session start. A client the issuer refuses now fails to load the model instead of using one another client opened.

Fixed

  • A session keeps its saved snapshot to itself while it serves vectors from it, also after moss_session_save_to_disk writes a new generation. moss_session_load_from_disk and moss_session_save_to_disk of the same session name and cache path in a second session, in this process or another, fail with ERR_INTERNAL and the message "The saved session snapshot is open in another session." until the first session is freed. A save used to replace the file that held the lock, so after one save a second session could load and save the same snapshot beside the first and overwrite its saves. The lock is the file session.lock in the session's directory, and it holds on Windows too. Loading from a directory this process cannot write works when the snapshot already has its session.lock, which every save writes, and fails otherwise. A snapshot that an earlier version saved has none. Add an empty session.lock file to its directory, or load a copy: while nothing saves to the snapshot, copy its directory under the same name into another directory, make the copy writable by the process, and pass that other directory as the cache path. On iOS and Android, a .mossvec that moss_client_load_index maps from cache_path is locked through a .lock file beside it. A second client that loads the same index from the same cache_path while the first holds it does not fail: it keeps that index's vectors in memory instead of mapping the file. Earlier versions take neither lock file, so a process on one of them and a process on this version do not lock each other out. Keep every process on an earlier version stopped while a process on this version has the same cache path open.
  • A client, session or MossInference built before fork() works in the forked child instead of hanging there. The child starts a runtime of its own for it on first use, and an inference client its own connections too, keeps the indexes the parent loaded, and starts its own telemetry. A child whose runtime fails to start with an I/O error fails that call with ERR_INTERNAL, and its next call tries again. A fork while another thread is inside a call on the same client or session is not supported. A query in a forked child no longer waits forever once the parent has run a query.

Platforms

Archive OS Arch
libmoss-v0.33.0-aarch64-apple-darwin.tar.gz macOS ARM64 (Apple Silicon)
libmoss-v0.33.0-x86_64-unknown-linux-gnu.tar.gz Linux x86_64
libmoss-v0.33.0-aarch64-unknown-linux-gnu.tar.gz Linux ARM64
libmoss-v0.33.0-x86_64-pc-windows-msvc.tar.gz Windows x86_64

Contents

Each archive contains:

  • include/libmoss.h - C header
  • lib/libmoss.dylib, lib/libmoss.so or lib/moss.dll - shared library
  • LICENSE.txt - the license of the library
  • LICENSE-THIRD-PARTY.txt - licenses of the third-party code the library links

Windows archives also contain the DLL import library lib/moss.dll.lib.

License

The library is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License.

Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)

Usage

Extract, then compile and link. The macOS dylib ships with an
@rpath/libmoss.dylib install name, so pass an -rpath that
resolves to lib/ or the binary aborts at launch with
"Library not loaded: @rpath/libmoss.dylib ... no LC_RPATH's found":

# macOS
clang your_app.c -o your_app -Iinclude -Llib -lmoss \
  -Wl,-rpath,@loader_path/lib \
  -framework Security -framework SystemConfiguration

# Linux
gcc your_app.c -o your_app -Iinclude -Llib -lmoss -lpthread -lm -ldl

Moss iOS SDK v0.16.0

Choose a tag to compare

@moss-release-bot moss-release-bot released this 17 Nov 02:55
764f5ac

Moss iOS SDK v0.16.0.

SwiftPM consumption

.package(url: "https://github.com/usemoss/moss", from: "0.16.0"),

Package.swift binary target

.binaryTarget(
    name: "MossC",
    url: "https://github.com/usemoss/moss/releases/download/v0.16.0/Moss.xcframework.zip",
    checksum: "054bad915dea8f219bde016f36f69a9559277975e316da7b45403a780918c2ab"
)

SHA-256: 054bad915dea8f219bde016f36f69a9559277975e316da7b45403a780918c2ab

What's in the zip

  • Moss.xcframework with the iOS device (arm64) and simulator (arm64) slices
  • LICENSE.txt - the license of the xcframework
  • LICENSE-THIRD-PARTY.txt - licenses of the third-party code both slices link

License

The xcframework is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License.

Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)

libmoss v0.32.0

Choose a tag to compare

@moss-release-bot moss-release-bot released this 17 Nov 03:06
764f5ac

Precompiled C SDK binaries for the Moss SDK.

Added

  • Each archive carries LICENSE.txt, the PolyForm Shield License 1.0.0 terms of the library. The release notes name them too.

Changed

  • A new client loads an index from cache_path in about one round trip to the Moss cloud when another client or session in the same process has the index's model loaded. Clients in one process share the project's token and each loaded embedding model, and on macOS, Linux and Windows also their connections to the cloud; every load still checks the cloud version of the index. Freeing the last client or session that uses a model still frees the model at once, on every platform, so a client created after that opens the model again. iOS and Android builds open connections per client. A cached moss_client_load_index also asks for the index metadata and its model provenance at once. From Europe, about 130 ms from the Moss cloud, a cached 960-document index loaded in the first client in a process in 1.9 to 2.2 s instead of 2.5 to 2.8 s, and in 200 to 290 ms instead of 2.5 to 2.8 s in a new client that found its model loaded; a cached 50,400-document index loaded in such a client in 0.8 to 1.4 s instead of 3.0 to 3.1 s. A client opened several idle minutes after the last one was freed reconnects and opens the model again, which took 1.6 to 1.7 s.
  • moss_client_load_index and moss_client_load_indexes need less memory. The index file, downloaded or read from cache_path, is freed once it is parsed, and its vectors and documents move into the loaded index instead of being copied. A load that writes the download to cache_path frees the file once it is written and copies the documents into the index. On an Apple M2, loading 250,000 documents with 384-dimension vectors peaked at 943 MB instead of 1,550 MB, and at about 1,210 MB when the load writes the download to cache_path. Auto-refresh of an index loaded without cache_path installs a newer version the same way. Search results and cache files are unchanged.
  • Queries with a metadata filter test it while they score the vectors, in parallel on large indexes, and skip the vectors of documents it rejects. The filter values of $gt, $gte, $lt, $lte and $near are parsed once per query instead of once per document. On an Apple M2, an embedding or hybrid query over 100,000 documents with 1,536-dimension vectors and a filter that keeps 5% of them ran about six times faster. Results are unchanged.
  • Creating an index whose name is taken returns ERR_INVALID_ARG and the message "An index with this name already exists. Delete it or choose another name.", and a call the service refuses because a build for the index is still running, such as adding documents during a build, fails the same way with "A build is already running for this index. Wait for it to finish, then try again.", instead of the generic "The Moss service rejected the request as invalid.". The code is unchanged, and moss_last_error_detail() still names the service's code.

Deprecated

  • libmoss versions below 0.24.0 reach end of support on 2026-12-17 and will stop working then. Upgrade to this release or a later one.

Fixed

  • moss_client_query, moss_client_query_multi_index and moss_session_query fail with ERR_INVALID_ARG when filter_json is not valid UTF-8. They used to drop the filter and return unfiltered results.
  • moss_client_get_docs, moss_client_delete_docs, moss_session_get_docs and moss_session_delete_docs fail with ERR_NULL_POINTER for a NULL id and with ERR_INVALID_ARG for one that is not valid UTF-8. They used to drop such ids, so moss_client_get_docs returned every document of the index when no id was left. moss_client_delete_docs and moss_session_delete_docs also fail with ERR_NULL_POINTER for a NULL doc_ids with a nonzero count, where they used to go ahead with an empty id list.
  • moss_client_create_index, moss_client_add_docs and moss_session_add_docs fail with ERR_INVALID_ARG for a metadata key or value that is NULL or not valid UTF-8, and for a payload that is not valid UTF-8. They used to drop the entry or the payload.
  • moss_client_create_index, moss_client_create_index_from_files, moss_client_add_docs and moss_client_delete_docs calls on one index run one at a time across every MossClient that uses the same loaded copy of the core. Each call keeps the index until it returns, the wait for its build included, so parallel writes to one index take as long as the same writes one after another. moss_session_push_index waits its turn with them, but keeps the index only until the service accepts the push, not through its build. Calls on different indexes still run in parallel. moss_client_delete_index does not wait for them, since the service cancels a running build of the index it deletes. Calls on one index through separate clients used to reach the service together, which refused some of them and reported others as done without storing them: of three parallel moss_client_add_docs calls with one new document each, only one document was stored. A call the service refuses because a build of the index is running, such as one started from another process, is sent again, with waits that grow from about one second to eight and add up to at most 60 seconds. If the service still refuses it after those waits, it returns ERR_INVALID_ARG and the message "A build is already running for this index. Wait for it to finish, then try again.", as it used to on the first refusal. Writes to one index from separate copies of the core, processes or hosts do not wait for each other. Such a write is sent again, with the same waits, only when the service refuses it with BUILD_IN_PROGRESS. The Moss cloud service refuses a write that overlaps a running build, but an index service without that refusal can accept the write and drop it.

Platforms

Archive OS Arch
libmoss-v0.32.0-aarch64-apple-darwin.tar.gz macOS ARM64 (Apple Silicon)
libmoss-v0.32.0-x86_64-unknown-linux-gnu.tar.gz Linux x86_64
libmoss-v0.32.0-aarch64-unknown-linux-gnu.tar.gz Linux ARM64
libmoss-v0.32.0-x86_64-pc-windows-msvc.tar.gz Windows x86_64

Contents

Each archive contains:

  • include/libmoss.h - C header
  • lib/libmoss.dylib, lib/libmoss.so or lib/moss.dll - shared library
  • LICENSE.txt - the license of the library
  • LICENSE-THIRD-PARTY.txt - licenses of the third-party code the library links

Windows archives also contain the DLL import library lib/moss.dll.lib.

License

The library is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License.

Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)

Usage

Extract, then compile and link. The macOS dylib ships with an
@rpath/libmoss.dylib install name, so pass an -rpath that
resolves to lib/ or the binary aborts at launch with
"Library not loaded: @rpath/libmoss.dylib ... no LC_RPATH's found":

# macOS
clang your_app.c -o your_app -Iinclude -Llib -lmoss \
  -Wl,-rpath,@loader_path/lib \
  -framework Security -framework SystemConfiguration

# Linux
gcc your_app.c -o your_app -Iinclude -Llib -lmoss -lpthread -lm -ldl

Moss Android SDK v0.32.0

Choose a tag to compare

@moss-release-bot moss-release-bot released this 17 Nov 02:45
f152fd3

Moss Android SDK v0.32.0.

AAR: moss-android-0.32.0.aar (arm64-v8a, minSdk 24, namespace dev.usemoss.moss).

SHA-256: d59042e00235e64ddb311f9afa93adbb9394709e91c215907e72b13965a06278

Added

  • License. The AAR carries LICENSE.txt, the PolyForm Shield License 1.0.0
    terms of the SDK, at META-INF/LICENSE.txt and beside the notices at
    assets/moss/LICENSE.txt. The release attaches it and its notes name the terms.

Changed

  • A client created after another one in the same app reuses the project's token
    instead of exchanging the project key again, and a load from cachePath asks
    for the index metadata and its model provenance at once. From Europe, the
    token exchange took about 0.6 s of every new client's load, and the provenance
    lookup one more round trip after the metadata. Closing the last client still
    frees its model and connections at once.
  • loadIndex and loadIndexes need less memory. The index file, downloaded or
    read from cachePath, is freed once it is parsed, and its vectors and
    documents move into the loaded index instead of being copied. A load that
    writes the download to cachePath frees the file once it is written and
    copies the documents into the index. On an Apple M2, loading 250,000 documents
    with 384-dimension vectors peaked at 943 MB instead of 1,550 MB, and at about
    1,210 MB when the load writes the download to cachePath. Auto-refresh of an
    index loaded without cachePath installs a newer version the same way. Search
    results and cache files are unchanged.
  • Queries with a metadata filter test it while they score the vectors, in
    parallel on large indexes, and skip the vectors of documents it rejects. The
    filter values of $gt, $gte, $lt, $lte and $near are parsed once per
    query instead of once per document. On an Apple M2, an embedding or hybrid
    query over 100,000 documents with 1,536-dimension vectors and a filter that
    keeps 5% of them ran about six times faster. Results are unchanged.
  • Creating an index whose name is taken throws a MossException whose code
    is MossErrorCode.INVALID_ARGUMENT and the message "An index with this name
    already exists. Delete it or choose another name.", and a call the service
    refuses because a build for the index is still running, such as adding
    documents during a build, throws the same way with "A build is already
    running for this index. Wait for it to finish, then try again.", instead of
    the generic "The Moss service rejected the request as invalid.". The code is
    unchanged, and detail still names the service's code.

Fixed

  • A string that holds an unpaired surrogate or U+0000, which a UTF-8 C string
    cannot hold, throws MossException.InvalidArgument as a metadata filter of
    MossClient.query, MossClient.queryMultiIndex or MossSession.query, as an
    id of deleteDocs, and as a metadata entry or payload of MossSession.addDocs.
    The filter used to be dropped, so the query returned unfiltered results, and
    the id, entry or payload used to be dropped too.
  • MossClient.createIndex, addDocs and deleteDocs calls on one index run
    one at a time across every MossClient that uses the same loaded copy of the
    core. Each call keeps the index until it returns, the wait for its build
    included, so parallel writes to one index take as long as the same writes one
    after another. MossSession.pushIndex waits its turn with them, but keeps the
    index only until the service accepts the push, not through its build. Calls on
    different indexes still run in parallel. deleteIndex does not wait for them,
    since the service cancels a running build of the index it deletes. Parallel
    calls on one index used to reach the service together, which refused some of
    them and reported others as done without storing them: of three parallel
    addDocs calls with one new document each, only one document was stored. A
    call the service refuses because a build of the index is running, such as one
    started from another process, is sent again, with waits that grow from about
    one second to eight and add up to at most 60 seconds. If the service still
    refuses it after those waits, it throws a MossException whose code is
    MossErrorCode.INVALID_ARGUMENT and the message "A build is already running
    for this index. Wait for it to finish, then try again.", as it used to on the
    first refusal. Writes to one index from separate copies of the core, processes
    or hosts do not wait for each other. Such a write is sent again, with the same
    waits, only when the service refuses it with BUILD_IN_PROGRESS. The Moss
    cloud service refuses a write that overlaps a running build, but an index
    service without that refusal can accept the write and drop it.
  • The README says that Moss searches only the indexes a call names in indexes,
    so a call that leaves it out runs no search, as the gateway does.

Add it to an app module with implementation(files(...)). It is a file AAR, not a Maven Central package.

License

The AAR is licensed under the PolyForm Shield License 1.0.0, not under this repository's BSD 2-Clause License. LICENSE.txt holds the terms. The AAR carries it at META-INF/LICENSE.txt, and at assets/moss/LICENSE.txt beside the licenses of the third-party code it links.

Required Notice: Copyright InferEdge Inc. (https://inferedge.dev)

Moss iOS SDK v0.15.0

Choose a tag to compare

@moss-release-bot moss-release-bot released this 11 Nov 00:03
ef20606

Moss iOS SDK v0.15.0.

SwiftPM consumption

.package(url: "https://github.com/usemoss/moss", from: "0.15.0"),

Package.swift binary target

.binaryTarget(
    name: "MossC",
    url: "https://github.com/usemoss/moss/releases/download/v0.15.0/Moss.xcframework.zip",
    checksum: "17c98a935dae8eb1ca3953599d8b6e1654abb2076b4e2a90bbd869cdcda4dcc7"
)

SHA-256: 17c98a935dae8eb1ca3953599d8b6e1654abb2076b4e2a90bbd869cdcda4dcc7

What's in the zip

  • Moss.xcframework with the iOS device (arm64) and simulator (arm64) slices
  • LICENSE-THIRD-PARTY.txt - licenses of the third-party code both slices link

Moss iOS SDK v0.14.0

Choose a tag to compare

@moss-release-bot moss-release-bot released this 07 Nov 03:01
3a5813e

Moss iOS SDK v0.14.0.

SwiftPM consumption

.package(url: "https://github.com/usemoss/moss", from: "0.14.0"),

Package.swift binary target

.binaryTarget(
    name: "MossC",
    url: "https://github.com/usemoss/moss/releases/download/v0.14.0/Moss.xcframework.zip",
    checksum: "a0b5cdfe735d2c24539de64f768af82b8dbeb790065f3f23227bf0ed03e81990"
)

SHA-256: a0b5cdfe735d2c24539de64f768af82b8dbeb790065f3f23227bf0ed03e81990

What's in the zip

  • Moss.xcframework with the iOS device (arm64) and simulator (arm64) slices
  • LICENSE-THIRD-PARTY.txt - licenses of the third-party code both slices link

libmoss v0.31.0

Choose a tag to compare

@moss-release-bot moss-release-bot released this 10 Nov 23:11
b5a862f

Precompiled C SDK binaries for the Moss SDK.

Changed

  • moss_inference_tasks_create and moss_inference_tasks_run take api_key in their call options, and send only that call's key as X-Moss-Provider-Key, for the task's model calls. They never send the client's api_key, which is for moss_inference_responses_create, so without a key in the call options no provider key is sent; an empty one fails with ERR_INVALID_ARG before any request. No other task call sends it, and one given api_key fails with ERR_INVALID_ARG.

Platforms

Archive OS Arch
libmoss-v0.31.0-aarch64-apple-darwin.tar.gz macOS ARM64 (Apple Silicon)
libmoss-v0.31.0-x86_64-unknown-linux-gnu.tar.gz Linux x86_64
libmoss-v0.31.0-aarch64-unknown-linux-gnu.tar.gz Linux ARM64
libmoss-v0.31.0-x86_64-pc-windows-msvc.tar.gz Windows x86_64

Contents

Each archive contains:

  • include/libmoss.h - C header
  • lib/libmoss.dylib, lib/libmoss.so or lib/moss.dll - shared library
  • LICENSE-THIRD-PARTY.txt - licenses of the third-party code the library links

Windows archives also contain the DLL import library lib/moss.dll.lib.

Usage

Extract, then compile and link. The macOS dylib ships with an
@rpath/libmoss.dylib install name, so pass an -rpath that
resolves to lib/ or the binary aborts at launch with
"Library not loaded: @rpath/libmoss.dylib ... no LC_RPATH's found":

# macOS
clang your_app.c -o your_app -Iinclude -Llib -lmoss \
  -Wl,-rpath,@loader_path/lib \
  -framework Security -framework SystemConfiguration

# Linux
gcc your_app.c -o your_app -Iinclude -Llib -lmoss -lpthread -lm -ldl

Moss Android SDK v0.31.0

Choose a tag to compare

@moss-release-bot moss-release-bot released this 10 Nov 23:39
b5a862f

Moss Android SDK v0.31.0.

AAR: moss-android-0.31.0.aar (arm64-v8a, minSdk 24, namespace dev.usemoss.moss).

SHA-256: e2987999dac2e245843624070c2980e3b0f79134b99e695f46e0d66e37edf1fa

Changed

  • tasks.create and tasks.run take apiKey, and send only that call's key as
    X-Moss-Provider-Key, for the task's model calls. They never send the client's
    apiKey, which is for responses, so without a key in the call no provider key
    is sent; a blank one throws
    IllegalArgumentException before any request. The other task calls never send
    it.

Add it to an app module with implementation(files(...)). It is a file AAR, not a Maven Central package.