Skip to content

Commit 2988b5e

Browse files
committed
fix: examples, enums and regenerate (#2)
1 parent 0fc7236 commit 2988b5e

Some content is hidden

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

61 files changed

+2574
-1099
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ pyrightconfig.json
99
**/.speakeasy/temp/
1010
**/.speakeasy/logs/
1111
.speakeasy/reports
12+
.env

.speakeasy/OAS_files/overlay.yaml

Lines changed: 0 additions & 90 deletions
This file was deleted.

.speakeasy/OAS_files/speakeasy-modifications-overlay.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.speakeasy/gen.lock

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
lockVersion: 2.0.0
22
id: 232c6d4f-b0fd-4172-8f1b-e2421566e9b4
33
management:
4-
docChecksum: 003bbbc167e4db8bd3f147793a6648e1
4+
docChecksum: 98b4f227e767bb91333b3b3469d93fa5
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.606.2
7-
generationVersion: 2.687.1
8-
releaseVersion: 0.1.3
9-
configChecksum: d572a56cfb69d7061ad0319f157ff5d8
6+
speakeasyVersion: 1.611.1
7+
generationVersion: 2.694.1
8+
releaseVersion: 0.5.2
9+
configChecksum: 4619605fbeb6f4488feb5336aa62bab6
1010
repoURL: https://github.com/speakeasy-sdks/openrouter-python-sdk.git
1111
installationURL: https://github.com/speakeasy-sdks/openrouter-python-sdk.git
1212
features:
1313
python:
1414
additionalDependencies: 1.0.0
1515
constsAndDefaults: 1.0.5
16-
core: 5.19.9
16+
core: 5.20.3
17+
customCodeRegions: 0.1.1
1718
defaultEnabledRetries: 0.2.0
1819
devContainers: 3.0.0
1920
enumUnions: 0.1.0
@@ -29,7 +30,7 @@ features:
2930
responseFormat: 1.0.1
3031
retries: 3.0.2
3132
sdkHooks: 1.1.0
32-
serverEvents: 1.0.7
33+
serverEvents: 1.0.8
3334
serverEventsSentinels: 0.1.0
3435
unions: 3.0.4
3536
generatedFiles:
@@ -308,16 +309,16 @@ examples:
308309
"200":
309310
application/json: {"id": "<id>", "choices": [], "created": 6977.95, "model": "El Camino", "object": "chat.completion"}
310311
"400":
311-
application/json: {"error": {"code": "<value>", "message": "<value>", "param": "<value>", "type": "<value>"}}
312+
application/json: {"error": {"code": null, "message": "<value>"}}
312313
"500":
313-
application/json: {"error": {"code": "<value>", "message": "<value>", "param": "<value>", "type": "<value>"}}
314+
application/json: {"error": {"code": null, "message": "<value>"}}
314315
streamChatCompletion:
315316
speakeasy-default-stream-chat-completion:
316317
requestBody:
317318
application/json: {"messages": [{"role": "user", "content": "Hello, how are you?"}], "stream": true, "temperature": 1, "top_p": 1}
318319
responses:
319320
"400":
320-
application/json: {"error": {"code": "<value>", "message": "<value>", "param": "<value>", "type": "<value>"}}
321+
application/json: {"error": {"code": null, "message": "<value>"}}
321322
"500":
322-
application/json: {"error": {"code": "<value>", "message": "<value>", "param": "<value>", "type": "<value>"}}
323+
application/json: {"error": {"code": null, "message": "<value>"}}
323324
examplesVersion: 1.0.2

.speakeasy/gen.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,21 @@ generation:
2525
generateNewTests: true
2626
skipResponseBodyAssertions: false
2727
python:
28-
version: 0.1.3
28+
version: 0.5.2
2929
additionalDependencies:
3030
dev: {}
3131
main: {}
32+
allowedRedefinedBuiltins:
33+
- id
34+
- object
3235
authors:
3336
- Speakeasy
3437
baseErrorName: OpenRouterError
3538
clientServerStatusCodesAsErrors: true
3639
defaultErrorName: OpenRouterDefaultError
3740
description: Python Client SDK Generated by Speakeasy.
38-
enableCustomCodeRegions: false
39-
enumFormat: enum
41+
enableCustomCodeRegions: true
42+
enumFormat: union
4043
envVarPrefix: OPENROUTER
4144
fixFlags:
4245
responseRequiredSep2024: true

0 commit comments

Comments
 (0)