File tree Expand file tree Collapse file tree 9 files changed +33
-10
lines changed
Expand file tree Collapse file tree 9 files changed +33
-10
lines changed Original file line number Diff line number Diff 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.21
9- configChecksum: 4286d15d32043f4bd7ddb46f01a379cf
8+ releaseVersion: 0.1.22
9+ configChecksum: 19f0305882502d3344a4ee7b93323109
1010 repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
1111 installationURL: https://github.com/OpenRouterTeam/typescript-sdk
1212 published: true
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ generation:
3030 generateNewTests : true
3131 skipResponseBodyAssertions : false
3232typescript :
33- version : 0.1.21
33+ version : 0.1.22
3434 acceptHeaderEnum : false
3535 additionalDependencies :
3636 dependencies : {}
Original file line number Diff line number Diff 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:04d3ae0786efbdcdcb5ab21ece1ca0d31e37a4c44a7a5e9cea339ef962604228
17+ codeSamplesRevisionDigest: sha256:a22312a6d5d1de45b95f200185031ffe05d5d41dca897b7da53f708ccea181fe
1818workflow:
1919 workflowVersion: 1.0.0
2020 speakeasyVersion: latest
Original file line number Diff line number Diff line change 22
33{
44 "name" : " @openrouter/sdk" ,
5- "version" : " 0.1.21 " ,
5+ "version" : " 0.1.22 " ,
66 "exports" : {
77 "." : " ./src/index.ts" ,
88 "./models/errors" : " ./src/models/errors/index.ts" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @openrouter/sdk" ,
3- "version" : " 0.1.21 " ,
3+ "version" : " 0.1.22 " ,
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" : [
Original file line number Diff line number Diff line change 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
48
59export * from "./lib/config.js" ;
610export * as files from "./lib/files.js" ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6969export const SDK_METADATA = {
7070 language : "typescript" ,
7171 openapiDocVersion : "1.0.0" ,
72- sdkVersion : "0.1.21 " ,
72+ sdkVersion : "0.1.22 " ,
7373 genVersion : "2.755.9" ,
74- userAgent : "speakeasy-sdk/typescript 0.1.21 2.755.9 1.0.0 @openrouter/sdk" ,
74+ userAgent : "speakeasy-sdk/typescript 0.1.22 2.755.9 1.0.0 @openrouter/sdk" ,
7575} as const ;
Original file line number Diff line number Diff line change @@ -16,6 +16,13 @@ import { Models } from "./models.js";
1616import { OAuth } from "./oauth.js" ;
1717import { ParametersT } from "./parameters.js" ;
1818import { Providers } from "./providers.js" ;
19+ // #region imports
20+ import { callModel as callModelFunc } from "../funcs/callModel.js" ;
21+ import { ResponseWrapper } from "../lib/response-wrapper.js" ;
22+ import { RequestOptions } from "../lib/sdks.js" ;
23+ import { EnhancedTool , MaxToolRounds } from "../lib/tool-types.js" ;
24+ import * as models from "../models/index.js" ;
25+ // #endregion imports
1926
2027export class OpenRouter extends ClientSDK {
2128 private _beta ?: Beta ;
@@ -82,4 +89,16 @@ export class OpenRouter extends ClientSDK {
8289 get completions ( ) : Completions {
8390 return ( this . _completions ??= new Completions ( this . _options ) ) ;
8491 }
92+
93+ // #region sdk-class-body
94+ callModel (
95+ request : Omit < models . OpenResponsesRequest , "stream" | "tools" > & {
96+ tools ?: EnhancedTool [ ] | models . OpenResponsesRequest [ "tools" ] ;
97+ maxToolRounds ?: MaxToolRounds ;
98+ } ,
99+ options ?: RequestOptions ,
100+ ) : ResponseWrapper {
101+ return callModelFunc ( this as any , request , options ) ;
102+ }
103+ // #endregion sdk-class-body
85104}
You can’t perform that action at this time.
0 commit comments