Skip to content

Commit 4cd7a40

Browse files
committed
re-add
1 parent da60edc commit 4cd7a40

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

.speakeasy/gen.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ management:
55
docVersion: 1.0.0
66
speakeasyVersion: 1.659.0
77
generationVersion: 2.755.9
8-
releaseVersion: 0.1.22
9-
configChecksum: 19f0305882502d3344a4ee7b93323109
8+
releaseVersion: 0.1.23
9+
configChecksum: 991bb8e65e382038e344c12cdd982649
1010
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
1212
published: true

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ generation:
3030
generateNewTests: true
3131
skipResponseBodyAssertions: false
3232
typescript:
33-
version: 0.1.22
33+
version: 0.1.23
3434
acceptHeaderEnum: false
3535
additionalDependencies:
3636
dependencies: {}

.speakeasy/workflow.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ targets:
1414
sourceRevisionDigest: sha256:ffe0e925561a55a1b403667fe33bb3158e05892ef1e66f56211544c9a890b301
1515
sourceBlobDigest: sha256:18aa7b22686c2f559af1062fea408a9f80146231027ed1fd62b68df38c71f65d
1616
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:a22312a6d5d1de45b95f200185031ffe05d5d41dca897b7da53f708ccea181fe
17+
codeSamplesRevisionDigest: sha256:7ef1c761fb99fe75b91e84384cfbf9703c9d160d8e9be9a1d72dd49e7df32af3
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "@openrouter/sdk",
5-
"version": "0.1.22",
5+
"version": "0.1.23",
66
"exports": {
77
".": "./src/index.ts",
88
"./models/errors": "./src/models/errors/index.ts",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openrouter/sdk",
3-
"version": "0.1.22",
3+
"version": "0.1.23",
44
"author": "OpenRouter",
55
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 300+ language models through a unified API.",
66
"keywords": [

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/*
22
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
33
*/
4-
// #region imports
5-
export * from "./lib/tool-types.js";
6-
export { ResponseWrapper } from "./lib/response-wrapper.js";
7-
// #endregion imports
84

95
export * from "./lib/config.js";
106
export * as files from "./lib/files.js";

src/lib/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6969
export const SDK_METADATA = {
7070
language: "typescript",
7171
openapiDocVersion: "1.0.0",
72-
sdkVersion: "0.1.22",
72+
sdkVersion: "0.1.23",
7373
genVersion: "2.755.9",
74-
userAgent: "speakeasy-sdk/typescript 0.1.22 2.755.9 1.0.0 @openrouter/sdk",
74+
userAgent: "speakeasy-sdk/typescript 0.1.23 2.755.9 1.0.0 @openrouter/sdk",
7575
} as const;

src/sdk/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class OpenRouter extends ClientSDK {
9898
},
9999
options?: RequestOptions,
100100
): ResponseWrapper {
101-
return callModelFunc(this as any, request, options);
101+
return callModelFunc(this, request, options);
102102
}
103103
// #endregion sdk-class-body
104104
}

vitest.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ export default defineConfig({
2222
include: ["tests/**/*.test.ts"],
2323
hookTimeout: 30000,
2424
testTimeout: 30000,
25+
typecheck: {
26+
enabled: true,
27+
include: ["tests/**/*.test.ts"],
28+
},
2529
},
2630
});

0 commit comments

Comments
 (0)