Skip to content

Commit b2098ff

Browse files
authored
chore: sync from monorepo (#49)
2 parents 0c791b0 + 1cad51a commit b2098ff

247 files changed

Lines changed: 8077 additions & 4564 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/gen.lock

Lines changed: 104 additions & 63 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ generation:
3131
skipResponseBodyAssertions: false
3232
preApplyUnionDiscriminators: true
3333
python:
34-
version: 0.1.3
34+
version: 0.6.0
3535
additionalDependencies:
3636
dev: {}
3737
main: {}

.speakeasy/in.openapi.yaml

Lines changed: 632 additions & 669 deletions
Large diffs are not rendered by default.

.speakeasy/out.openapi.yaml

Lines changed: 688 additions & 645 deletions
Large diffs are not rendered by default.

.speakeasy/overlays/add-headers.overlay.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ actions:
3333
type: string
3434
description: |
3535
The app display name allows you to customize how your app appears in OpenRouter's dashboard.
36+
37+
# Add header parameters to all paths so Speakeasy matches them with globals
38+
- target: $.paths[*]
39+
description: Reference app identification headers on all paths so Speakeasy injects them via globals
40+
update:
41+
parameters:
42+
- $ref: "#/components/parameters/AppIdentifier"
43+
- $ref: "#/components/parameters/AppDisplayName"

.speakeasy/workflow.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ sources:
88
- latest
99
OpenRouter API:
1010
sourceNamespace: open-router-chat-completions-api
11-
sourceRevisionDigest: sha256:291e215687f85db05005d79dd87602a75b8086f39a841700fdbaaff7690b4f76
12-
sourceBlobDigest: sha256:166639d08f0ae9687cea532ed8a93db59e63293c6a6f4d17d63f015b60d643d2
11+
sourceRevisionDigest: sha256:2dbe784978f60cb53a0d081e1b5f4cbb42ca86b1ff8f4361869fa78c42e042ee
12+
sourceBlobDigest: sha256:851aadf3180735f9dbfdb2904011de231d3805d187499c24a450a224cacf1ed2
1313
tags:
1414
- latest
15+
- main
1516
- 1.0.0
1617
targets:
1718
open-router:
1819
source: OpenRouter API
1920
sourceNamespace: open-router-chat-completions-api
20-
sourceRevisionDigest: sha256:291e215687f85db05005d79dd87602a75b8086f39a841700fdbaaff7690b4f76
21-
sourceBlobDigest: sha256:166639d08f0ae9687cea532ed8a93db59e63293c6a6f4d17d63f015b60d643d2
21+
sourceRevisionDigest: sha256:2dbe784978f60cb53a0d081e1b5f4cbb42ca86b1ff8f4361869fa78c42e042ee
22+
sourceBlobDigest: sha256:851aadf3180735f9dbfdb2904011de231d3805d187499c24a450a224cacf1ed2
2223
codeSamplesNamespace: open-router-python-code-samples
23-
codeSamplesRevisionDigest: sha256:f19eae09ec90a23147935f07a86f75dbbc998e6bac3b820351a1e5f147fec590
24+
codeSamplesRevisionDigest: sha256:cf9f3fd9983864e3c5dd5bc3fa9198efc9493f4fbc671130e8f07e87722c43dd
2425
workflow:
2526
workflowVersion: 1.0.0
2627
speakeasyVersion: 1.666.0

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ import os
182182
def main():
183183

184184
with OpenRouter(
185+
http_referer="<value>",
186+
x_title="<value>",
185187
api_key=os.getenv("OPENROUTER_API_KEY", ""),
186188
) as open_router:
187189
# Rest of application here...
@@ -191,6 +193,8 @@ def main():
191193
async def amain():
192194

193195
async with OpenRouter(
196+
http_referer="<value>",
197+
x_title="<value>",
194198
api_key=os.getenv("OPENROUTER_API_KEY", ""),
195199
) as open_router:
196200
# Rest of application here...

USAGE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import os
66

77

88
with OpenRouter(
9+
http_referer="<value>",
10+
x_title="<value>",
911
api_key=os.getenv("OPENROUTER_API_KEY", ""),
1012
) as open_router:
1113

@@ -30,6 +32,8 @@ import os
3032
async def main():
3133

3234
async with OpenRouter(
35+
http_referer="<value>",
36+
x_title="<value>",
3337
api_key=os.getenv("OPENROUTER_API_KEY", ""),
3438
) as open_router:
3539

docs/components/assistantmessage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
| `tool_calls` | List[[components.ChatMessageToolCall](../components/chatmessagetoolcall.md)] | :heavy_minus_sign: | N/A |
1212
| `refusal` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
1313
| `reasoning` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
14-
| `reasoning_details` | List[[components.Schema2](../components/schema2.md)] | :heavy_minus_sign: | N/A |
14+
| `reasoning_details` | List[[components.Schema19](../components/schema19.md)] | :heavy_minus_sign: | N/A |
1515
| `images` | List[[components.Image](../components/image.md)] | :heavy_minus_sign: | N/A |

0 commit comments

Comments
 (0)