Skip to content

Commit 9b799c0

Browse files
Merge remote-tracking branch 'origin/main' into responses-ga-v1.1-main
# Conflicts: # .speakeasy/gen.yaml # pyproject.toml # src/openrouter/_version.py # uv.lock
2 parents c75a93c + e11633c commit 9b799c0

129 files changed

Lines changed: 2362 additions & 569 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: 303 additions & 228 deletions
Large diffs are not rendered by default.

‎.speakeasy/in.openapi.yaml‎

Lines changed: 313 additions & 11 deletions
Large diffs are not rendered by default.

‎.speakeasy/out.openapi.yaml‎

Lines changed: 315 additions & 11 deletions
Large diffs are not rendered by default.

‎.speakeasy/workflow.lock‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.787.0
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:2fb7c6c4af553f2758d67c2b54408be8b95fddfcbb9f9afd8dd24740edc9ecfe
6-
sourceBlobDigest: sha256:616610478ee4486d26a055db3a10ad8e83ffad10f7b318ffe8a3f890cfd510f8
5+
sourceRevisionDigest: sha256:00d4a3b5a3f008f2b46f301a3e7310d397c100a10e6c70418d60121a4865e259
6+
sourceBlobDigest: sha256:84f6a4b5f0ae7eeed219cd9ab1049f6181593d3784464dd93240aff6fd727e74
77
tags:
88
- latest
99
- 1.0.0
1010
targets:
1111
open-router:
1212
source: OpenRouter API
1313
sourceNamespace: open-router-chat-completions-api
14-
sourceRevisionDigest: sha256:2fb7c6c4af553f2758d67c2b54408be8b95fddfcbb9f9afd8dd24740edc9ecfe
15-
sourceBlobDigest: sha256:616610478ee4486d26a055db3a10ad8e83ffad10f7b318ffe8a3f890cfd510f8
14+
sourceRevisionDigest: sha256:00d4a3b5a3f008f2b46f301a3e7310d397c100a10e6c70418d60121a4865e259
15+
sourceBlobDigest: sha256:84f6a4b5f0ae7eeed219cd9ab1049f6181593d3784464dd93240aff6fd727e74
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:e2114610d847592f214bc006ddc25448fde09a771f9278f476d8bb50e370437c
17+
codeSamplesRevisionDigest: sha256:fde97e93bd267a0402aa8338e3d771c4625562ac29d74bcff2211d824e867055
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.787.0

‎OVERVIEW.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
The OpenRouter Python SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.
44

5+
The SDK is stable as of v1.0.
6+
57
## Why use the OpenRouter SDK?
68

79
Integrating AI models into applications involves handling different provider APIs, managing model-specific requirements, and avoiding common implementation mistakes. The OpenRouter SDK standardizes these integrations and protects you from footguns.
@@ -103,7 +105,7 @@ pip install openrouter
103105
poetry add openrouter
104106
```
105107

106-
**Requirements:** Python 3.9 or higher
108+
**Requirements:** Python 3.10 or higher
107109

108110
Get your API key from [openrouter.ai/settings/keys](https://openrouter.ai/settings/keys).
109111

‎README-PYPI.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
![hero illustration](https://github.com/OpenRouterTeam/python-sdk/blob/master/./assets/banner.png)
2+
13
# OpenRouter SDK
24

35
The [OpenRouter SDK](https://openrouter.ai/docs/sdks/python) is a Python toolkit designed to help you build AI-powered features and solutions. Giving you easy access to 400+ models across providers in an easy and type-safe way.
46

7+
The OpenRouter Python SDK is stable as of v1.0.
8+
59
To learn more about how to use the OpenRouter SDK, check out our [API Reference](https://openrouter.ai/docs/sdks/python/reference) and [Documentation](https://openrouter.ai/docs/sdks/python).
610

711
<!-- No Summary [summary] -->
@@ -77,7 +81,7 @@ Once that is saved to a file, you can run it with `uv run script.py` where
7781
<!-- Start Requirements [requirements] -->
7882
## Requirements
7983

80-
This SDK requires Python 3.9 or higher. For Python version support policy, see the SDK Installation section above.
84+
This SDK requires Python 3.10 or higher. For Python version support policy, see the SDK Installation section above.
8185
<!-- End Requirements [requirements] -->
8286

8387
<!-- Start IDE Support [idesupport] -->
@@ -309,4 +313,4 @@ To run the test suite, you'll need to set up your environment with an OpenRouter
309313

310314
```bash
311315
pytest
312-
```
316+
```

‎README.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
![hero illustration](./assets/banner.png)
2+
13
# OpenRouter SDK
24

35
The [OpenRouter SDK](https://openrouter.ai/docs/sdks/python) is a Python toolkit designed to help you build AI-powered features and solutions. Giving you easy access to 400+ models across providers in an easy and type-safe way.
46

7+
The OpenRouter Python SDK is stable as of v1.0.
8+
59
To learn more about how to use the OpenRouter SDK, check out our [API Reference](https://openrouter.ai/docs/sdks/python/reference) and [Documentation](https://openrouter.ai/docs/sdks/python).
610

711
<!-- No Summary [summary] -->
@@ -77,7 +81,7 @@ Once that is saved to a file, you can run it with `uv run script.py` where
7781
<!-- Start Requirements [requirements] -->
7882
## Requirements
7983

80-
This SDK requires Python 3.9 or higher. For Python version support policy, see the SDK Installation section above.
84+
This SDK requires Python 3.10 or higher. For Python version support policy, see the SDK Installation section above.
8185
<!-- End Requirements [requirements] -->
8286

8387
<!-- Start IDE Support [idesupport] -->
@@ -309,4 +313,4 @@ To run the test suite, you'll need to set up your environment with an OpenRouter
309313

310314
```bash
311315
pytest
312-
```
316+
```

0 commit comments

Comments
 (0)