From 205089ecbc1321902fce124450fa8cfb9d911164 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Wed, 4 Feb 2026 13:25:06 +0530 Subject: [PATCH] feat: enhance CI workflow for skills module integration - Added support for caching node modules in the skills directory to optimize build times. - Included steps for installing and building skills dependencies within the CI workflow. - Updated the MediaPipeLlmBridge.kt file to clarify supported parameters in the MediaPipe LLM Inference API, improving documentation and code clarity. --- .github/workflows/package-and-publish.yml | 17 +++++++++++++++++ .../com/alphahuman/app/MediaPipeLlmBridge.kt | 13 +++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/package-and-publish.yml b/.github/workflows/package-and-publish.yml index d8425b325..40f030595 100644 --- a/.github/workflows/package-and-publish.yml +++ b/.github/workflows/package-and-publish.yml @@ -176,6 +176,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 1 + submodules: true ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }} - name: Set Xcode version @@ -235,6 +236,22 @@ jobs: if: steps.yarn-cache.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile + - name: Cache skills node modules + id: skills-yarn-cache + uses: actions/cache@v4 + with: + path: skills/node_modules + key: ${{ runner.os }}-skills-${{ hashFiles('skills/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-skills- + + - name: Install skills dependencies + if: steps.skills-yarn-cache.outputs.cache-hit != 'true' + run: cd skills && yarn install --frozen-lockfile + + - name: Build skills + run: cd skills && yarn build + - name: Extract repository owner and name id: repository-info if: needs.get-version.outputs.should-publish != '' diff --git a/src-tauri/gen/android/app/src/main/java/com/alphahuman/app/MediaPipeLlmBridge.kt b/src-tauri/gen/android/app/src/main/java/com/alphahuman/app/MediaPipeLlmBridge.kt index 2b9e27897..d66bb1d82 100644 --- a/src-tauri/gen/android/app/src/main/java/com/alphahuman/app/MediaPipeLlmBridge.kt +++ b/src-tauri/gen/android/app/src/main/java/com/alphahuman/app/MediaPipeLlmBridge.kt @@ -107,20 +107,17 @@ object MediaPipeLlmBridge { currentModelPath = null // Build options - // Note: Temperature is not available in MediaPipe LLM Inference API 0.10.x - // Only setModelPath, setMaxTokens, setMaxTopK, and setRandomSeed are supported + // Note: MediaPipe LLM Inference API 0.10.x only supports: + // setModelPath, setMaxTokens, setMaxTopK + // Temperature and randomSeed are not available in this API version val optionsBuilder = LlmInferenceOptions.builder() .setModelPath(modelPath) .setMaxTokens(maxTokens) .setMaxTopK(topK) - if (randomSeed > 0) { - optionsBuilder.setRandomSeed(randomSeed) - } - - // Temperature parameter is accepted but not used in current API version + // Temperature and randomSeed parameters are accepted but not used @Suppress("UNUSED_VARIABLE") - val unusedTemp = temperature + val unusedParams = listOf(temperature, randomSeed) val options = optionsBuilder.build()