Skip to content

Commit c871866

Browse files
committed
reset to v0.1.0
1 parent 7d9cd58 commit c871866

File tree

11 files changed

+47
-76
lines changed

11 files changed

+47
-76
lines changed

.devcontainer/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11

2-
<div align="center">
3-
<a href="https://codespaces.new/speakeasy-sdks/openrouter-typescript-sdk.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
4-
</div>
5-
<br>
6-
72
> **Remember to shutdown a GitHub Codespace when it is not in use!**
83
94
# Dev Containers Quick Start

.speakeasy/gen.lock

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
lockVersion: 2.0.0
2-
id: 53e6e641-e7b6-4f11-8e15-1d930a684b2b
2+
id: 8b6cd71c-ea04-44da-af45-e43968b5928d
33
management:
44
docChecksum: 9e1a9a8efaad4ab9997261a7c64cdcb9
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.615.2
7-
generationVersion: 2.698.4
8-
releaseVersion: 0.5.8
9-
configChecksum: 0d544adabcca7d0be5ede016e0c05dea
10-
repoURL: https://github.com/speakeasy-sdks/openrouter-typescript-sdk.git
11-
installationURL: https://github.com/speakeasy-sdks/openrouter-typescript-sdk
6+
speakeasyVersion: 1.617.1
7+
generationVersion: 2.701.8
8+
releaseVersion: 0.1.0
9+
configChecksum: 247efce5153de29caba3728a82f00bec
1210
features:
1311
typescript:
1412
acceptHeaders: 2.81.2
@@ -31,7 +29,7 @@ features:
3129
responseFormat: 0.2.3
3230
retries: 2.83.0
3331
sdkHooks: 0.3.0
34-
serverEvents: 0.1.9
32+
serverEvents: 0.1.10
3533
serverEventsSentinels: 0.1.0
3634
unions: 2.85.11
3735
generatedFiles:
@@ -289,30 +287,11 @@ examples:
289287
"200":
290288
application/json: {"id": "<id>", "choices": [], "created": 6977.95, "model": "El Camino", "object": "chat.completion"}
291289
"400":
292-
application/json: {"error": {"code": null, "message": "<value>"}}
293-
"500":
294-
application/json: {"error": {"code": null, "message": "<value>"}}
290+
application/json: {"error": {"code": 8588.53, "message": "<value>"}}
295291
"401":
296-
application/json: {"error": {"code": 6977.95, "message": "<value>"}}
292+
application/json: {"error": {"code": 2658.12, "message": "<value>"}}
297293
"429":
298-
application/json: {"error": {"code": 4173.4, "message": "<value>"}}
299-
speakeasy-default-create-chat-completion-raw:
300-
requestBody:
301-
text/event-stream: "x-file: example.file"
302-
responses:
303-
"200":
304-
application/json: {"id": "<id>", "choices": [], "created": 6977.95, "model": "El Camino", "object": "chat.completion"}
305-
"400":
306-
application/json: {"error": {"code": "<value>", "message": "<value>", "param": "<value>", "type": "<value>"}}
307-
"500":
308-
application/json: {"error": {"code": "<value>", "message": "<value>", "param": "<value>", "type": "<value>"}}
309-
streamChatCompletion:
310-
speakeasy-default-stream-chat-completion:
311-
requestBody:
312-
application/json: {"messages": [{"role": "user", "content": "Hello, how are you?"}], "stream": true, "temperature": 1, "top_p": 1}
313-
responses:
314-
"400":
315-
application/json: {"error": {"code": "<value>", "message": "<value>", "param": "<value>", "type": "<value>"}}
294+
application/json: {"error": {"code": 9110.85, "message": "<value>"}}
316295
"500":
317-
application/json: {"error": {"code": "<value>", "message": "<value>", "param": "<value>", "type": "<value>"}}
296+
application/json: {"error": {"code": null, "message": "<value>"}}
318297
examplesVersion: 1.0.2

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ generation:
2020
oAuth2ClientCredentialsEnabled: true
2121
oAuth2PasswordEnabled: true
2222
hoistGlobalSecurity: true
23+
inferSSEOverload: true
2324
sdkHooksConfigAccess: true
2425
tests:
2526
generateTests: false
2627
generateNewTests: true
2728
skipResponseBodyAssertions: false
2829
typescript:
29-
version: 0.5.8
30+
version: 0.1.0
3031
additionalDependencies:
3132
dependencies: {}
3233
devDependencies: {}

.speakeasy/workflow.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.615.2
1+
speakeasyVersion: 1.617.1
22
sources:
33
OpenRouter Chat Completions API:
44
sourceNamespace: open-router-chat-completions-api
@@ -14,7 +14,7 @@ targets:
1414
sourceRevisionDigest: sha256:59ae32fd3f41894b467ac0a4a6e377b1d6c963c9907a238f3379670e19160403
1515
sourceBlobDigest: sha256:091faca19d5f5b1615e6fc4bacc28202e663e07a291fac4a2970f40383efe81f
1616
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:235fc33541cc4a6a66113b9b0ca2d960446f8eaef38c2354937a288e95ed986e
17+
codeSamplesRevisionDigest: sha256:b484eed28c43d44a0bb64f46a84ef3431f31139236c6cc76a0516789be4dc843
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest
@@ -24,14 +24,14 @@ workflow:
2424
- location: .speakeasy/in.openapi.yaml
2525
output: .speakeasy/out.openapi.yaml
2626
registry:
27-
location: registry.speakeasyapi.dev/sheldon-vaughn-test/sandbox/open-router-chat-completions-api
27+
location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api
2828
targets:
2929
open-router:
3030
target: typescript
3131
source: OpenRouter Chat Completions API
3232
codeSamples:
3333
registry:
34-
location: registry.speakeasyapi.dev/sheldon-vaughn-test/sandbox/open-router-chat-completions-api-typescript-code-samples
34+
location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api-typescript-code-samples
3535
labelOverride:
3636
fixedValue: Typescript (SDK)
3737
blocking: false

.speakeasy/workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ sources:
66
- location: .speakeasy/in.openapi.yaml
77
output: .speakeasy/out.openapi.yaml
88
registry:
9-
location: registry.speakeasyapi.dev/sheldon-vaughn-test/sandbox/open-router-chat-completions-api
9+
location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api
1010
targets:
1111
open-router:
1212
target: typescript
1313
source: OpenRouter Chat Completions API
1414
codeSamples:
1515
registry:
16-
location: registry.speakeasyapi.dev/sheldon-vaughn-test/sandbox/open-router-chat-completions-api-typescript-code-samples
16+
location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api-typescript-code-samples
1717
labelOverride:
1818
fixedValue: Typescript (SDK)
1919
blocking: false

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,25 @@ The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https
5151
### NPM
5252

5353
```bash
54-
npm add https://github.com/speakeasy-sdks/openrouter-typescript-sdk
54+
npm add <UNSET>
5555
```
5656

5757
### PNPM
5858

5959
```bash
60-
pnpm add https://github.com/speakeasy-sdks/openrouter-typescript-sdk
60+
pnpm add <UNSET>
6161
```
6262

6363
### Bun
6464

6565
```bash
66-
bun add https://github.com/speakeasy-sdks/openrouter-typescript-sdk
66+
bun add <UNSET>
6767
```
6868

6969
### Yarn
7070

7171
```bash
72-
yarn add https://github.com/speakeasy-sdks/openrouter-typescript-sdk zod
72+
yarn add <UNSET> zod
7373

7474
# Note that Yarn does not install peer dependencies automatically. You will need
7575
# to install zod as shown above.

docs/models/chatcompletionmessageparam.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,6 @@ Chat completion message with role-based discrimination
55

66
## Supported Types
77

8-
### `models.ChatCompletionToolMessageParam`
9-
10-
```typescript
11-
const value: models.ChatCompletionToolMessageParam = {
12-
role: "tool",
13-
content: [
14-
{
15-
type: "input_audio",
16-
inputAudio: {
17-
data: "<value>",
18-
format: "pcm24",
19-
},
20-
},
21-
],
22-
toolCallId: "<id>",
23-
};
24-
```
25-
268
### `models.ChatCompletionSystemMessageParam`
279

2810
```typescript
@@ -54,3 +36,21 @@ const value: models.ChatCompletionAssistantMessageParam = {
5436
};
5537
```
5638

39+
### `models.ChatCompletionToolMessageParam`
40+
41+
```typescript
42+
const value: models.ChatCompletionToolMessageParam = {
43+
role: "tool",
44+
content: [
45+
{
46+
type: "input_audio",
47+
inputAudio: {
48+
data: "<value>",
49+
format: "pcm24",
50+
},
51+
},
52+
],
53+
toolCallId: "<id>",
54+
};
55+
```
56+

jsr.json

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

33
{
44
"name": "open-router",
5-
"version": "0.5.8",
5+
"version": "0.1.0",
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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "open-router",
3-
"version": "0.5.8",
3+
"version": "0.1.0",
44
"author": "Speakeasy",
55
"type": "module",
66
"tshy": {
@@ -19,10 +19,6 @@
1919
}
2020
},
2121
"sideEffects": false,
22-
"repository": {
23-
"type": "git",
24-
"url": "https://github.com/speakeasy-sdks/openrouter-typescript-sdk.git"
25-
},
2622
"scripts": {
2723
"lint": "eslint --cache --max-warnings=0 src",
2824
"build": "tshy",

0 commit comments

Comments
 (0)