diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1cb3c338..e0ca96d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -148,7 +148,7 @@ jobs: - name: Setup & Build id: build shell: bash - timeout-minutes: 160 + timeout-minutes: 200 env: ARTIFACT_NAME: ${{ matrix.config.artifact }} run: | @@ -326,13 +326,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npx --no vite-node ./scripts/resolveNextReleaseVersion.ts --saveReleaseToFile ./semanticReleaseDryRunReleaseResult.json --saveVersionToFile ./resolvedNextVersion.txt - name: Save next version output - run: echo "next-version=$(cat ./resolvedNextVersion.txt)" >> $GITHUB_ENV + run: echo "next-version=$(cat ./resolvedNextVersion.txt)" >> "$GITHUB_OUTPUT" - name: Update job summary run: | if [ "$(cat ./resolvedNextVersion.txt)" == "false" ]; then - echo "Next release version: `N/A`" >> $GITHUB_STEP_SUMMARY + echo "Next release version: \`N/A\`" >> $GITHUB_STEP_SUMMARY else - echo "Next release version: `$(cat ./resolvedNextVersion.txt)`" >> $GITHUB_STEP_SUMMARY + echo "Next release version: \`$(cat ./resolvedNextVersion.txt)\`" >> $GITHUB_STEP_SUMMARY fi - name: Upload resolved release artifact uses: actions/upload-artifact@v4 diff --git a/docs/guide/chat-wrapper.md b/docs/guide/chat-wrapper.md index 93d8b469..e01e94eb 100644 --- a/docs/guide/chat-wrapper.md +++ b/docs/guide/chat-wrapper.md @@ -93,7 +93,7 @@ Example usage: import {TemplateChatWrapper} from "node-llama-cpp"; const chatWrapper = new TemplateChatWrapper({ - template: "{{systemPrompt}}\n{{history}}model:{{completion}}\nuser:", + template: "{{systemPrompt}}\n{{history}}model: {{completion}}\nuser: ", historyTemplate: { system: "system: {{message}}\n", user: "user: {{message}}\n", diff --git a/scripts/resolveLatestReleaseVersion.ts b/scripts/resolveLatestReleaseVersion.ts index c4d42393..bfba3a71 100644 --- a/scripts/resolveLatestReleaseVersion.ts +++ b/scripts/resolveLatestReleaseVersion.ts @@ -15,7 +15,7 @@ const releaseRes = await fetch("https://api.github.com/repos/withcatai/node-llam const release: Release = await releaseRes.json(); let latestReleaseVersion = release.tag_name; -if (latestReleaseVersion.startsWith("v")) +if (latestReleaseVersion.toLowerCase().startsWith("v")) latestReleaseVersion = latestReleaseVersion.slice("v".length); if (latestReleaseVersion === "") diff --git a/scripts/resolveNextReleaseVersion.ts b/scripts/resolveNextReleaseVersion.ts index 15e82a05..9e08f278 100644 --- a/scripts/resolveNextReleaseVersion.ts +++ b/scripts/resolveNextReleaseVersion.ts @@ -24,8 +24,6 @@ const res = await semanticRelease({ cwd: path.join(__dirname, "..") }); -console.log("Result:", res); - if (saveReleaseToFile != null) { const resolvedPath = path.resolve(process.cwd(), saveReleaseToFile); diff --git a/src/chatWrappers/generic/TemplateChatWrapper.ts b/src/chatWrappers/generic/TemplateChatWrapper.ts index 539bc509..ce93ad6d 100644 --- a/src/chatWrappers/generic/TemplateChatWrapper.ts +++ b/src/chatWrappers/generic/TemplateChatWrapper.ts @@ -24,7 +24,7 @@ export type TemplateChatWrapperOptions = { * import {TemplateChatWrapper} from "node-llama-cpp"; * * const chatWrapper = new TemplateChatWrapper({ - * template: "{{systemPrompt}}\n{{history}}model:{{completion}}\nuser:", + * template: "{{systemPrompt}}\n{{history}}model: {{completion}}\nuser: ", * historyTemplate: { * system: "system: {{message}}\n", * user: "user: {{message}}\n",