From 820be1380303bd92168011fbcb28928d93be6255 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 17 Dec 2024 12:10:46 -0800 Subject: [PATCH 1/4] fix(ci): Add remote turbo caching to CI --- .github/workflows/examples.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 867f87228b99..5516c1f97fe6 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -28,6 +28,10 @@ concurrency: jobs: build: + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} + TURBO_REMOTE_ONLY: true name: Build runs-on: ubuntu-latest strategy: @@ -38,7 +42,16 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x + - name: Cache turbo build setup + uses: actions/cache@v4 + with: + path: .turbo + key: ${{ runner.os }}-turbo-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-turbo- + - name: Install dependencies run: yarn install --immutable + - name: Build examples run: yarn turbo:command build --filter=examples From 811877f4c27b7b547d4fd106b6e3c7b9d7fe2768 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 17 Dec 2024 12:12:02 -0800 Subject: [PATCH 2/4] cr --- examples/src/chains/advanced_subclass_call.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/src/chains/advanced_subclass_call.ts b/examples/src/chains/advanced_subclass_call.ts index 76e7833bc843..78caa34632eb 100644 --- a/examples/src/chains/advanced_subclass_call.ts +++ b/examples/src/chains/advanced_subclass_call.ts @@ -3,6 +3,7 @@ import { BaseChain, ChainInputs } from "langchain/chains"; import { BasePromptTemplate, PromptTemplate } from "@langchain/core/prompts"; import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager"; import { ChainValues } from "@langchain/core/utils/types"; +// todo: remove before mergign export interface MyCustomChainInputs extends ChainInputs { llm: BaseLanguageModelInterface; From 4030d010b79cc8d34cb64ea2765b0e54b8aa5d9a Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 17 Dec 2024 12:57:46 -0800 Subject: [PATCH 3/4] cr --- .github/workflows/examples.yml | 3 ++- examples/src/chains/advanced_subclass_call.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 5516c1f97fe6..f1139dcbd27e 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -42,10 +42,11 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x + - name: Cache turbo build setup uses: actions/cache@v4 with: - path: .turbo + path: node_modules/.cache/turbo key: ${{ runner.os }}-turbo-${{ github.sha }} restore-keys: | ${{ runner.os }}-turbo- diff --git a/examples/src/chains/advanced_subclass_call.ts b/examples/src/chains/advanced_subclass_call.ts index 78caa34632eb..a3536b9a99f4 100644 --- a/examples/src/chains/advanced_subclass_call.ts +++ b/examples/src/chains/advanced_subclass_call.ts @@ -3,7 +3,7 @@ import { BaseChain, ChainInputs } from "langchain/chains"; import { BasePromptTemplate, PromptTemplate } from "@langchain/core/prompts"; import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager"; import { ChainValues } from "@langchain/core/utils/types"; -// todo: remove before mergign +// todo: remove before mergignd export interface MyCustomChainInputs extends ChainInputs { llm: BaseLanguageModelInterface; From c4533be56c3fb42f1e5548adf7aedb4044a4c744 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 17 Dec 2024 15:03:19 -0800 Subject: [PATCH 4/4] cr --- .github/workflows/examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index f1139dcbd27e..7b4307edde11 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -46,7 +46,7 @@ jobs: - name: Cache turbo build setup uses: actions/cache@v4 with: - path: node_modules/.cache/turbo + path: .turbo key: ${{ runner.os }}-turbo-${{ github.sha }} restore-keys: | ${{ runner.os }}-turbo-