mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user