Skip to content

Commit bdd580c

Browse files
committed
2 parents 4b2291f + 5a7496b commit bdd580c

File tree

11 files changed

+57
-2869
lines changed

11 files changed

+57
-2869
lines changed

.github/actions/validate-sdk/action.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ runs:
3232
run: pnpm install
3333

3434
# TODO: Re-enable when Speakeasy fixes generated code type errors
35-
- name: Typecheck examples root
36-
shell: bash
37-
working-directory: examples
38-
run: pnpm exec tsc
35+
# Disabled: examples have no tsconfig.json and inherit the root one,
36+
# which causes TS5011/TS4114 errors due to generated code.
37+
# - name: Typecheck examples root
38+
# shell: bash
39+
# working-directory: examples
40+
# run: pnpm exec tsc
3941

4042
- name: Install nextjs-example dependencies
4143
shell: bash

examples/nextjs-example/src/app/(app)/chat/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import type { Message as OpenRouterMessageRequest } from '@openrouter/sdk/models';
3+
import type { ChatMessages as OpenRouterMessageRequest } from '@openrouter/sdk/models';
44
import type React from 'react';
55

66
import { Bot, MessageSquare, Send, Settings, User } from 'lucide-react';
@@ -101,7 +101,7 @@ export default function Page() {
101101
}
102102

103103
const result = await openRouter.chat.send({
104-
chatGenerationParams: {
104+
chatRequest: {
105105
model: selectedModel,
106106
maxTokens: 1000,
107107
messages: updatedMessages,

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,10 @@
7272
"test:watch": "vitest --watch --project unit",
7373
"typecheck": "tsc --noEmit",
7474
"typecheck:transit": "exit 0",
75-
"compile": "tsc"
76-
},
77-
"peerDependencies": {
78-
75+
"compile": "tsc",
76+
"prepare": "npm run build"
7977
},
78+
"peerDependencies": {},
8079
"devDependencies": {
8180
"@eslint/js": "^9.26.0",
8281
"@types/node": "^22.13.12",

0 commit comments

Comments
 (0)