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.
This commit is contained in:
Steven Enamakel
2026-02-04 13:25:06 +05:30
parent 78b0a1c48a
commit 205089ecbc
2 changed files with 22 additions and 8 deletions
+17
View File
@@ -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 != ''
@@ -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()