Skip to content

Commit 540701c

Browse files
committed
reset to v0.1.0
1 parent 80fd801 commit 540701c

19 files changed

+275
-281
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-python-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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.env.local
12
.venv/
23
venv/
34
src/*.egg-info/

.speakeasy/gen.lock

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
lockVersion: 2.0.0
2-
id: 232c6d4f-b0fd-4172-8f1b-e2421566e9b4
2+
id: 03e733ff-14c6-48f8-87a5-37a1a4588594
33
management:
44
docChecksum: f629b0ca18ec064975608b5eea7aebfd
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.612.0
7-
generationVersion: 2.695.0
8-
releaseVersion: 0.6.2
9-
configChecksum: f369a2bbdc8e34f44647641a40369e29
10-
repoURL: https://github.com/speakeasy-sdks/openrouter-python-sdk.git
11-
installationURL: https://github.com/speakeasy-sdks/openrouter-python-sdk.git
6+
speakeasyVersion: 1.617.1
7+
generationVersion: 2.701.8
8+
releaseVersion: 0.1.0
9+
configChecksum: ee7ed66772b5663ad6d381d1b4142fe2
1210
features:
1311
python:
1412
acceptHeaders: 3.0.0
1513
additionalDependencies: 1.0.0
1614
constsAndDefaults: 1.0.5
17-
core: 5.20.3
15+
core: 5.20.4
1816
customCodeRegions: 0.1.1
1917
defaultEnabledRetries: 0.2.0
2018
devContainers: 3.0.0
2119
enumUnions: 0.1.0
2220
envVarSecurityUsage: 0.3.2
2321
flatRequests: 1.0.1
24-
globalSecurity: 3.0.3
22+
globalSecurity: 3.0.4
2523
globalSecurityCallbacks: 1.0.0
2624
globalSecurityFlattening: 1.0.0
2725
globalServerURLs: 3.1.1
@@ -32,7 +30,7 @@ features:
3230
responseFormat: 1.0.1
3331
retries: 3.0.2
3432
sdkHooks: 1.1.0
35-
serverEvents: 1.0.8
33+
serverEvents: 1.0.9
3634
serverEventsSentinels: 0.1.0
3735
unions: 3.0.4
3836
generatedFiles:
@@ -182,7 +180,6 @@ generatedFiles:
182180
- py.typed
183181
- pylintrc
184182
- pyproject.toml
185-
- scripts/prepare_readme.py
186183
- scripts/publish.sh
187184
- src/openrouter/__init__.py
188185
- src/openrouter/_hooks/__init__.py
@@ -266,16 +263,7 @@ examples:
266263
"200":
267264
application/json: {"id": "<id>", "choices": [], "created": 6977.95, "model": "El Camino", "object": "chat.completion"}
268265
"400":
269-
application/json: {"error": {"code": null, "message": "<value>"}}
266+
application/json: {"error": {"code": 8588.53, "message": "<value>"}}
270267
"500":
271-
application/json: {"error": {"code": null, "message": "<value>"}}
272-
streamChatCompletion:
273-
speakeasy-default-stream-chat-completion:
274-
requestBody:
275-
application/json: {"messages": [{"role": "user", "content": "Hello, how are you?"}], "stream": true, "temperature": 1, "top_p": 1}
276-
responses:
277-
"400":
278-
application/json: {"error": {"code": null, "message": "<value>"}}
279-
"500":
280-
application/json: {"error": {"code": null, "message": "<value>"}}
268+
application/json: {"error": {"code": 8588.53, "message": "<value>"}}
281269
examplesVersion: 1.0.2

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ generation:
1919
auth:
2020
oAuth2ClientCredentialsEnabled: true
2121
oAuth2PasswordEnabled: true
22+
hoistGlobalSecurity: true
2223
inferSSEOverload: true
2324
sdkHooksConfigAccess: true
2425
tests:
2526
generateTests: false
2627
generateNewTests: true
2728
skipResponseBodyAssertions: false
2829
python:
29-
version: 0.6.2
30+
version: 0.1.0
3031
additionalDependencies:
3132
dev: {}
3233
main: {}
@@ -65,4 +66,5 @@ python:
6566
pytestFilterWarnings: []
6667
pytestTimeout: 0
6768
responseFormat: flat
69+
sseFlatResponse: true
6870
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
speakeasyVersion: 1.612.0
1+
speakeasyVersion: 1.617.1
22
sources:
33
OpenRouter Chat Completions API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:30b19a8759608792fb4d27f6bf28d5982d7e2a8cf5b3faf34ba3507a62f9f106
6-
sourceBlobDigest: sha256:454f1b880a0882a70f78eacccb2c33e3d9d19134a0738b0e21487984a7bf2e63
5+
sourceRevisionDigest: sha256:a7746404e672bbb6dcd8354532d0c627d24522844c39d58011d4cd9c7e8ebd20
6+
sourceBlobDigest: sha256:67c793fef9c039a2c351fc6ba7ed9a6119059023fe3fbd1022645d7494c2c63c
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1755878373
109
- 1.0.0
1110
targets:
1211
open-router:
1312
source: OpenRouter Chat Completions API
1413
sourceNamespace: open-router-chat-completions-api
15-
sourceRevisionDigest: sha256:30b19a8759608792fb4d27f6bf28d5982d7e2a8cf5b3faf34ba3507a62f9f106
16-
sourceBlobDigest: sha256:454f1b880a0882a70f78eacccb2c33e3d9d19134a0738b0e21487984a7bf2e63
14+
sourceRevisionDigest: sha256:a7746404e672bbb6dcd8354532d0c627d24522844c39d58011d4cd9c7e8ebd20
15+
sourceBlobDigest: sha256:67c793fef9c039a2c351fc6ba7ed9a6119059023fe3fbd1022645d7494c2c63c
16+
codeSamplesNamespace: open-router-chat-completions-api-python-code-samples
17+
codeSamplesRevisionDigest: sha256:fb054934c4d0de58a48ca8cdfde7b4210f71c425fb9dfad02e8824b8a1848774
1718
workflow:
1819
workflowVersion: 1.0.0
1920
speakeasyVersion: latest
@@ -23,14 +24,14 @@ workflow:
2324
- location: .speakeasy/in.openapi.yaml
2425
output: .speakeasy/out.openapi.yaml
2526
registry:
26-
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
2728
targets:
2829
open-router:
2930
target: python
3031
source: OpenRouter Chat Completions API
3132
codeSamples:
3233
registry:
33-
location: registry.speakeasyapi.dev/sheldon-vaughn-test/sandbox/open-router-chat-completions-api-python-code-samples
34+
location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api-python-code-samples
3435
labelOverride:
3536
fixedValue: Python (SDK)
3637
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: python
1313
source: OpenRouter Chat Completions API
1414
codeSamples:
1515
registry:
16-
location: registry.speakeasyapi.dev/sheldon-vaughn-test/sandbox/open-router-chat-completions-api-python-code-samples
16+
location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api-python-code-samples
1717
labelOverride:
1818
fixedValue: Python (SDK)
1919
blocking: false

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,23 @@ The SDK can be installed with *uv*, *pip*, or *poetry* package managers.
5757
*uv* is a fast Python package installer and resolver, designed as a drop-in replacement for pip and pip-tools. It's recommended for its speed and modern Python tooling capabilities.
5858

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

6363
### PIP
6464

6565
*PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.
6666

6767
```bash
68-
pip install git+https://github.com/speakeasy-sdks/openrouter-python-sdk.git
68+
pip install git+<UNSET>.git
6969
```
7070

7171
### Poetry
7272

7373
*Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies.
7474

7575
```bash
76-
poetry add git+https://github.com/speakeasy-sdks/openrouter-python-sdk.git
76+
poetry add git+<UNSET>.git
7777
```
7878

7979
### Shell and script usage with `uv`

docs/models/createchatcompletionresponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
value: models.ChatCompletion = /* values here */
1010
```
1111

12-
### `Union[eventstreaming.EventStream[models.ChatCompletionChunkWrapper], eventstreaming.EventStreamAsync[models.ChatCompletionChunkWrapper]]`
12+
### `Union[eventstreaming.EventStream[models.ChatCompletionChunk], eventstreaming.EventStreamAsync[models.ChatCompletionChunk]]`
1313

1414
```python
15-
value: Union[eventstreaming.EventStream[models.ChatCompletionChunkWrapper], eventstreaming.EventStreamAsync[models.ChatCompletionChunkWrapper]] = /* values here */
15+
value: Union[eventstreaming.EventStream[models.ChatCompletionChunk], eventstreaming.EventStreamAsync[models.ChatCompletionChunk]] = /* values here */
1616
```
1717

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
[project]
22
name = "openrouter"
3-
version = "0.6.2"
3+
version = "0.1.0"
44
description = "Python Client SDK Generated by Speakeasy."
55
authors = [{ name = "Speakeasy" },]
6-
readme = "README-PYPI.md"
6+
readme = "README.md"
77
requires-python = ">=3.9.2"
88
dependencies = [
99
"httpcore >=1.0.9",
1010
"httpx >=0.28.1",
1111
"pydantic >=2.11.2",
1212
]
13-
urls.repository = "https://github.com/speakeasy-sdks/openrouter-python-sdk.git"
1413

1514
[dependency-groups]
1615
dev = [
@@ -30,7 +29,6 @@ build-backend = "setuptools.build_meta"
3029

3130
[tool.pytest.ini_options]
3231
asyncio_default_fixture_loop_scope = "function"
33-
asyncio_mode = "auto"
3432
pythonpath = ["src"]
3533

3634
[tool.mypy]

scripts/publish.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/usr/bin/env bash
22

3-
uv run python scripts/prepare_readme.py
4-
53
uv build
64
uv publish --token $PYPI_TOKEN

0 commit comments

Comments
 (0)