Skip to content

Commit a22eecf

Browse files
committed
fix: remove cross reference exmaple from ci and fix ai sdk route example
1 parent 98f5abb commit a22eecf

File tree

2 files changed

+2
-40
lines changed

2 files changed

+2
-40
lines changed

.github/workflows/test.yaml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -229,43 +229,6 @@ jobs:
229229
run: npm run dev &
230230
working-directory: examples/image-gen-with-workflow
231231

232-
agents-researcher-local-build:
233-
needs:
234-
- local-tests
235-
runs-on: ubuntu-latest
236-
name: Cross Reference Agent Local Build
237-
steps:
238-
- name: Setup repo
239-
uses: actions/checkout@v4
240-
241-
- name: Setup Bun
242-
uses: oven-sh/setup-bun@v1
243-
with:
244-
bun-version: latest
245-
246-
- name: Install Dependencies
247-
run: bun install
248-
249-
- name: Build
250-
run: bun run build
251-
252-
- name: Install Node.js
253-
uses: actions/setup-node@v4
254-
with:
255-
node-version: 20
256-
257-
- name: Install Dependencies
258-
run: npm install
259-
working-directory: examples/agents-researcher
260-
261-
- name: Install local package
262-
run: npm install @upstash/workflow@file:../../dist
263-
working-directory: examples/agents-researcher
264-
265-
- name: Run example
266-
run: npm run dev &
267-
working-directory: examples/agents-researcher
268-
269232
nestjs-local-build:
270233
needs:
271234
- local-tests
@@ -614,7 +577,6 @@ jobs:
614577
- express-local-build
615578
- hono-local-build
616579
- image-gen-with-workflow-local-build
617-
- agents-researcher-local-build
618580
- nextjs-local-build
619581
- nextjs12-node18-local-build
620582
- nextjs-pages-local-build

examples/nextjs/app/vercel-ai-sdk/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const createWorkflowOpenAI = (context: WorkflowContext) => {
1010
return createOpenAI({
1111
apiKey: process.env.OPENAI_API_KEY ?? "",
1212
compatibility: "strict",
13-
fetch: async (input, init) => {
13+
fetch: (async (input, init) => {
1414
try {
1515
// Prepare headers from init.headers
1616
const headers = init?.headers
@@ -49,7 +49,7 @@ const createWorkflowOpenAI = (context: WorkflowContext) => {
4949
throw error; // Rethrow error for further handling
5050
}
5151
}
52-
},
52+
}) as typeof fetch,
5353
});
5454
};
5555

0 commit comments

Comments
 (0)