Skip to content

Commit aed8199

Browse files
committed
updates
1 parent 06b2ccc commit aed8199

File tree

65 files changed

+518
-765
lines changed

Some content is hidden

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

65 files changed

+518
-765
lines changed

.speakeasy/gen.lock

Lines changed: 30 additions & 33 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ generation:
66
sdkClassName: OpenRouter
77
maintainOpenAPIOrder: true
88
usageSnippets:
9-
optionalPropertyRendering: withExample
9+
optionalPropertyRendering: never
1010
sdkInitStyle: constructor
1111
useClassNamesForArrayFields: true
1212
fixes:
@@ -24,13 +24,14 @@ generation:
2424
sdkHooksConfigAccess: true
2525
schemas:
2626
allOfMergeStrategy: shallowMerge
27-
requestBodyFieldName: body
27+
requestBodyFieldName: ""
2828
tests:
2929
generateTests: false
3030
generateNewTests: true
3131
skipResponseBodyAssertions: false
32+
preApplyUnionDiscriminators: true
3233
python:
33-
version: 0.1.1
34+
version: 0.0.16
3435
additionalDependencies:
3536
dev: {}
3637
main: {}
@@ -57,11 +58,12 @@ python:
5758
imports:
5859
option: openapi
5960
paths:
60-
callbacks: ""
61+
callbacks: callbacks
6162
errors: errors
6263
operations: operations
6364
shared: components
64-
webhooks: ""
65+
webhooks: webhooks
66+
inferSSEOverload: true
6567
inferUnionDiscriminators: true
6668
inputModelSuffix: input
6769
legacyPyright: false

.speakeasy/out.openapi.yaml

Lines changed: 69 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -3464,14 +3464,12 @@ components:
34643464
- AionLabs
34653465
- Alibaba
34663466
- Amazon Bedrock
3467-
- Amazon Nova
34683467
- Anthropic
3469-
- Arcee AI
3468+
- Arcee
34703469
- AtlasCloud
34713470
- Avian
34723471
- Azure
34733472
- BaseTen
3474-
- BytePlus
34753473
- Black Forest Labs
34763474
- Cerebras
34773475
- Chutes
@@ -3486,7 +3484,6 @@ components:
34863484
- Fireworks
34873485
- Friendli
34883486
- GMICloud
3489-
- GoPomelo
34903487
- Google
34913488
- Google AI Studio
34923489
- Groq
@@ -3517,7 +3514,6 @@ components:
35173514
- SambaNova
35183515
- SiliconFlow
35193516
- Stealth
3520-
- StreamLake
35213517
- Switchpoint
35223518
- Targon
35233519
- Together
@@ -3652,13 +3648,18 @@ components:
36523648
nullable: true
36533649
store:
36543650
type: boolean
3655-
const: false
3656-
default: false
3651+
nullable: true
36573652
service_tier:
3658-
type: string
3659-
enum:
3660-
- auto
3661-
default: auto
3653+
allOf:
3654+
- $ref: '#/components/schemas/OpenAIResponsesServiceTier'
3655+
- enum:
3656+
- auto
3657+
- default
3658+
- flex
3659+
- scale
3660+
- priority
3661+
example: auto
3662+
x-speakeasy-unknown-values: allow
36623663
truncation:
36633664
allOf:
36643665
- $ref: '#/components/schemas/OpenAIResponsesTruncation'
@@ -3802,14 +3803,6 @@ components:
38023803
x-speakeasy-unknown-values: allow
38033804
required:
38043805
- id
3805-
- type: object
3806-
properties:
3807-
id:
3808-
type: string
3809-
enum:
3810-
- response-healing
3811-
required:
3812-
- id
38133806
description: Plugins you want to enable for this request, including their settings.
38143807
user:
38153808
type: string
@@ -4604,10 +4597,6 @@ components:
46044597
status: default
46054598
uptime_last_30m: 99.5
46064599
supports_implicit_caching: true
4607-
__schema0:
4608-
anyOf:
4609-
- $ref: '#/components/schemas/ChatCompletionFinishReason'
4610-
- type: 'null'
46114600
ModelName:
46124601
type: string
46134602
ChatMessageContentItemText:
@@ -4618,8 +4607,6 @@ components:
46184607
const: text
46194608
text:
46204609
type: string
4621-
cache_control:
4622-
$ref: '#/components/schemas/ChatMessageContentItemCacheControl'
46234610
required:
46244611
- type
46254612
- text
@@ -4659,6 +4646,15 @@ components:
46594646
type: string
46604647
format:
46614648
type: string
4649+
enum:
4650+
- wav
4651+
- mp3
4652+
- flac
4653+
- m4a
4654+
- ogg
4655+
- pcm16
4656+
- pcm24
4657+
x-speakeasy-unknown-values: allow
46624658
required:
46634659
- data
46644660
- format
@@ -4673,12 +4669,7 @@ components:
46734669
type: string
46744670
const: input_video
46754671
video_url:
4676-
type: object
4677-
properties:
4678-
url:
4679-
type: string
4680-
required:
4681-
- url
4672+
$ref: '#/components/schemas/VideoURL'
46824673
required:
46834674
- type
46844675
- video_url
@@ -4698,12 +4689,40 @@ components:
46984689
- type
46994690
- video_url
47004691
type: object
4692+
VideoURL:
4693+
type: object
4694+
properties:
4695+
url:
4696+
type: string
4697+
required:
4698+
- url
4699+
ChatMessageContentItemFile:
4700+
type: object
4701+
properties:
4702+
type:
4703+
type: string
4704+
const: file
4705+
file:
4706+
type: object
4707+
properties:
4708+
file_data:
4709+
type: string
4710+
file_id:
4711+
type: string
4712+
filename:
4713+
type: string
4714+
required:
4715+
- file_data
4716+
required:
4717+
- type
4718+
- file
47014719
ChatMessageContentItem:
47024720
oneOf:
47034721
- $ref: '#/components/schemas/ChatMessageContentItemText'
47044722
- $ref: '#/components/schemas/ChatMessageContentItemImage'
47054723
- $ref: '#/components/schemas/ChatMessageContentItemAudio'
47064724
- $ref: '#/components/schemas/ChatMessageContentItemVideo'
4725+
- $ref: '#/components/schemas/ChatMessageContentItemFile'
47074726
type: object
47084727
discriminator:
47094728
propertyName: type
@@ -4713,6 +4732,7 @@ components:
47134732
input_audio: '#/components/schemas/ChatMessageContentItemAudio'
47144733
input_video: '#/components/schemas/ChatMessageContentItemVideo'
47154734
video_url: '#/components/schemas/ChatMessageContentItemVideo'
4735+
file: '#/components/schemas/ChatMessageContentItemFile'
47164736
ChatMessageToolCall:
47174737
type: object
47184738
properties:
@@ -4836,14 +4856,16 @@ components:
48364856
- prompt_tokens
48374857
- total_tokens
48384858
ChatCompletionFinishReason:
4839-
type: string
4840-
enum:
4841-
- tool_calls
4842-
- stop
4843-
- length
4844-
- content_filter
4845-
- error
4846-
x-speakeasy-unknown-values: allow
4859+
anyOf:
4860+
- type: string
4861+
enum:
4862+
- tool_calls
4863+
- stop
4864+
- length
4865+
- content_filter
4866+
- error
4867+
x-speakeasy-unknown-values: allow
4868+
- type: 'null'
48474869
JSONSchemaConfig:
48484870
type: object
48494871
properties:
@@ -4885,20 +4907,6 @@ components:
48854907
required:
48864908
- type
48874909
- grammar
4888-
ChatMessageContentItemCacheControl:
4889-
type: object
4890-
properties:
4891-
type:
4892-
type: string
4893-
const: ephemeral
4894-
ttl:
4895-
type: string
4896-
enum:
4897-
- 5m
4898-
- 1h
4899-
x-speakeasy-unknown-values: allow
4900-
required:
4901-
- type
49024910
SystemMessage:
49034911
type: object
49044912
properties:
@@ -5210,18 +5218,13 @@ components:
52105218
- type: 'null'
52115219
user:
52125220
type: string
5213-
debug:
5214-
type: object
5215-
properties:
5216-
echo_upstream_body:
5217-
type: boolean
52185221
required:
52195222
- messages
52205223
ChatResponseChoice:
52215224
type: object
52225225
properties:
52235226
finish_reason:
5224-
$ref: '#/components/schemas/__schema0'
5227+
$ref: '#/components/schemas/ChatCompletionFinishReason'
52255228
index:
52265229
type: number
52275230
message:
@@ -5282,7 +5285,7 @@ components:
52825285
delta:
52835286
$ref: '#/components/schemas/ChatStreamingMessageChunk'
52845287
finish_reason:
5285-
$ref: '#/components/schemas/__schema0'
5288+
$ref: '#/components/schemas/ChatCompletionFinishReason'
52865289
index:
52875290
type: number
52885291
logprobs:
@@ -5615,12 +5618,6 @@ components:
56155618
- type: 'null'
56165619
finish_reason:
56175620
$ref: '#/components/schemas/CompletionFinishReason'
5618-
native_finish_reason:
5619-
type: string
5620-
reasoning:
5621-
anyOf:
5622-
- type: string
5623-
- type: 'null'
56245621
required:
56255622
- text
56265623
- index
@@ -5638,8 +5635,6 @@ components:
56385635
type: number
56395636
model:
56405637
type: string
5641-
provider:
5642-
type: string
56435638
system_fingerprint:
56445639
type: string
56455640
choices:
@@ -5858,26 +5853,6 @@ paths:
58585853
application/json:
58595854
schema:
58605855
type: object
5861-
properties:
5862-
data:
5863-
type: object
5864-
properties:
5865-
total_credits:
5866-
type: number
5867-
description: Total credits purchased
5868-
example: 100.5
5869-
total_usage:
5870-
type: number
5871-
description: Total credits used
5872-
example: 25.75
5873-
required:
5874-
- total_credits
5875-
- total_usage
5876-
example:
5877-
total_credits: 100.5
5878-
total_usage: 25.75
5879-
required:
5880-
- data
58815856
description: Total credits purchased and used
58825857
example:
58835858
data:
@@ -6242,6 +6217,11 @@ paths:
62426217
- object
62436218
- data
62446219
- model
6220+
text/event-stream:
6221+
schema:
6222+
type: string
6223+
description: Not used for embeddings - embeddings do not support streaming
6224+
x-speakeasy-sse-sentinel: '[DONE]'
62456225
'400':
62466226
description: Bad Request - Invalid request parameters or malformed input
62476227
content:
@@ -6774,14 +6754,12 @@ paths:
67746754
- AionLabs
67756755
- Alibaba
67766756
- Amazon Bedrock
6777-
- Amazon Nova
67786757
- Anthropic
6779-
- Arcee AI
6758+
- Arcee
67806759
- AtlasCloud
67816760
- Avian
67826761
- Azure
67836762
- BaseTen
6784-
- BytePlus
67856763
- Black Forest Labs
67866764
- Cerebras
67876765
- Chutes
@@ -6796,7 +6774,6 @@ paths:
67966774
- Fireworks
67976775
- Friendli
67986776
- GMICloud
6799-
- GoPomelo
68006777
- Google
68016778
- Google AI Studio
68026779
- Groq
@@ -6827,7 +6804,6 @@ paths:
68276804
- SambaNova
68286805
- SiliconFlow
68296806
- Stealth
6830-
- StreamLake
68316807
- Switchpoint
68326808
- Targon
68336809
- Together
@@ -8437,5 +8413,3 @@ x-speakeasy-globals:
84378413
parameters:
84388414
- $ref: "#/components/parameters/AppIdentifier"
84398415
- $ref: "#/components/parameters/AppDisplayName"
8440-
- $ref: "#/components/parameters/AppIdentifier"
8441-
- $ref: "#/components/parameters/AppDisplayName"

0 commit comments

Comments
 (0)