Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 41 additions & 17 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: c48cf606-fb42-4a45-9c23-8f0555307828
management:
docChecksum: 008831fad14f3f8944c471d04ded3043
docChecksum: 52e6fdf4210e93487c3774e6ec33dbcf
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
releaseVersion: 1.3.212
configChecksum: dc9fb28166e948365f42ce4b943fe57f
releaseVersion: 1.3.213
configChecksum: 2e6d1442dfccfbbcb558ac1f94c48d3f
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: 5310aeb0-becc-4782-ac43-0459edbe840b
pristine_commit_hash: f1f7d600bca15c3ae4cd34ce6b137d6d0457d543
pristine_tree_hash: 35b582cd969731a5bb5dab954059a20e99fbca1a
generation_id: f10649c5-fc8b-4a72-a0ed-b412b3c29290
pristine_commit_hash: 4ab74749d9b83c6ae1502007c7cf8a93ff0d6e36
pristine_tree_hash: 0ab90787bd4ee9eeeeadd9e5f50574115663e863
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -272,8 +272,8 @@ trackedFiles:
pristine_git_object: 28ee7a5691f7254183a33644a1d72cdc4202e23b
docs/components/alignmentresponsesrejected.mdx:
id: eea4008474f0
last_write_checksum: sha1:44453b64e436f4e6771dbcae670a4eb7cafb65d3
pristine_git_object: b0c408ff3e7f8ed385ff29d1cae8803e4ab7e1a8
last_write_checksum: sha1:e4a3f90fe876233bce47f448cd341e8910e7af30
pristine_git_object: 6a729b0aa6beea1ecd9f95d7fb28822f8eb46abf
docs/components/alignmentrule.mdx:
id: ce3e91b088a0
last_write_checksum: sha1:86898783d585075925509829c460b5547271af9a
Expand Down Expand Up @@ -6826,6 +6826,22 @@ trackedFiles:
id: 876e956be23e
last_write_checksum: sha1:709e4571a6dcef4b6bf5fd577674c8ef1c5f7bc5
pristine_git_object: 7b09b45f7e7f7637df45e795529e28ab73c3cc21
docs/components/outputitemtoolsearchcall.mdx:
id: a4b724d8dbac
last_write_checksum: sha1:c2145eaae9bada389c149682ec18ee64f9851b02
pristine_git_object: 2f6ad6f81320ec23b967505c5b574edfe625a1ff
docs/components/outputitemtoolsearchcallexecution.mdx:
id: eb490e65e0b8
last_write_checksum: sha1:9d80a7b96ef8e25e308afd5b6a438a076cec887d
pristine_git_object: 7a5de7d566bd0eaf9a2307d9c1ee6d847fbc5d00
docs/components/outputitemtoolsearchcallstatus.mdx:
id: d64036b61b42
last_write_checksum: sha1:a481b1f2b64ba5060fe391d86c2b2ebc581c0617
pristine_git_object: 6d87390b33bb70d5eaa4c94dd3e3679d24376375
docs/components/outputitemtoolsearchcalltype.mdx:
id: 3ba568645f1c
last_write_checksum: sha1:f694ebb8b77dd9b23ffe29f45661be514837f51c
pristine_git_object: 09a51da3ad2ca9768239310910aedfbc3d657217
docs/components/outputitemwebsearchcall.mdx:
id: 5a7fc683da6e
last_write_checksum: sha1:147e2d8107125a6eeddd5b81e4a80fae22030cb3
Expand Down Expand Up @@ -11896,8 +11912,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:f61f7d027cce394a48dba6ac227973bc2a335952
pristine_git_object: cf1ec5a34d662ae46248567a6ab9e76d4b46bf78
last_write_checksum: sha1:3c16fd3e8fd333e1ebddb9a194c303bea6183979
pristine_git_object: b45fa349cb5830faf062951e48ffa239051bb235
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -11924,8 +11940,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:35b8b1e3af9b1003b85eeddd8275af7a1e69dd4d
pristine_git_object: 59b82f600ff9ec94c7498cef214cea94199c716f
last_write_checksum: sha1:8b0a5753f5cdf224362aa738e73a60a18b890c19
pristine_git_object: 6521f450b2867a860e0837785970a1b1e3050eb6
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
Expand Down Expand Up @@ -11972,8 +11988,8 @@ trackedFiles:
pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1
src/openrouter/components/__init__.py:
id: 81754e97b3f4
last_write_checksum: sha1:b0804e61e1cdda20a75ac294b31b2245030d2bf4
pristine_git_object: 56bef4aeeed119ac0b25ea913903d725d44db6e0
last_write_checksum: sha1:8f1ba82a54201f48d03eea3f4483a69f3c595fef
pristine_git_object: 085716e02c2361b5200234471bde441fc9569e63
src/openrouter/components/aabenchmarkentry.py:
id: e2e0f0b48c82
last_write_checksum: sha1:08125e1d60df82793e11e8aed6e3c9fdb7512ebb
Expand Down Expand Up @@ -12060,8 +12076,8 @@ trackedFiles:
pristine_git_object: b2fa33dbe51cef3ebba3298492fea70c1112dc95
src/openrouter/components/alignmentresponsesrejected.py:
id: f95a8a915824
last_write_checksum: sha1:a6f46460e89e377f9392dac7a0874617ce2e25a7
pristine_git_object: 870d6f53572b156f99769818a5637b6c6b655c78
last_write_checksum: sha1:816ac126e1deeca874447c90b36392fdc5dc414e
pristine_git_object: 887ee3823877774aea8cde83f82eefa6d87676fd
src/openrouter/components/alignmentrule.py:
id: 54982e2c3889
last_write_checksum: sha1:b244b847343e4f1e3c1c3c458e6cf44a5e8a6c34
Expand Down Expand Up @@ -14714,6 +14730,10 @@ trackedFiles:
id: 90f107de3116
last_write_checksum: sha1:d7dafe97dc6bf6a0de62084afa54ff14d74b5b94
pristine_git_object: 909f7601f58c6d208b37e7a5e7665eedbbda4b5c
src/openrouter/components/outputitemtoolsearchcall.py:
id: 745440da2bc3
last_write_checksum: sha1:30856f53e47f0384072bc1459b82ed0bf6f57b3f
pristine_git_object: 0cefa7585ccbc1300af59ee4faabaded7122dd80
src/openrouter/components/outputitemwebsearchcall.py:
id: bac8732aecb9
last_write_checksum: sha1:00d5b67226d6ff2c6a5497e6e01c764aeede496e
Expand Down Expand Up @@ -22097,4 +22117,8 @@ examples:
"500":
application/json: {"error": {"code": 400, "message": "custom_id is required on requests[0]."}}
examplesVersion: 1.0.2
releaseNotes: "## Python SDK Changes:\n* `open_router.batch.get_results()`: **Added**\n* `open_router.tts.create_speech()`: \n * `request.response_format.enum(wav)` **Added**\n* `open_router.batch.delete()`: `error.status[503]` **Added**\n* `open_router.guardrails.list()`: `response.data[].allow_safety_retention_openai` **Added**\n* `open_router.guardrails.create()`: \n * `request.allow_safety_retention_openai` **Added**\n * `response.data.allow_safety_retention_openai` **Added**\n* `open_router.guardrails.get()`: `response.data.allow_safety_retention_openai` **Added**\n* `open_router.guardrails.update()`: \n * `request.allow_safety_retention_openai` **Added**\n * `response.data.allow_safety_retention_openai` **Added**\n* `open_router.guardrail_policies.list_account_policies()`: `response.data[].union(model_availability).config.allow_safety_retention_openai` **Added**\n* `open_router.guardrail_policies.create_account_policy()`: \n * `request.account_guardrail_policy_request.union(model_availability).config.allow_safety_retention_openai` **Added**\n * `response.data.union(model_availability).config.allow_safety_retention_openai` **Added**\n* `open_router.guardrail_policies.update_account_policy()`: \n * `request.account_guardrail_policy_request.union(model_availability).config.allow_safety_retention_openai` **Added**\n * `response.data.union(model_availability).config.allow_safety_retention_openai` **Added**\n* `open_router.guardrail_policies.list_model_availability_policies()`: `response.data[].config.allow_safety_retention_openai` **Added**\n* `open_router.guardrail_policies.create_model_availability_policy()`: \n * `request.config.allow_safety_retention_openai` **Added**\n * `response.data.config.allow_safety_retention_openai` **Added**\n* `open_router.guardrail_policies.get_model_availability_policy()`: `response.data.config.allow_safety_retention_openai` **Added**\n* `open_router.guardrail_policies.update_model_availability_policy()`: \n * `request.config.allow_safety_retention_openai` **Added**\n * `response.data.config.allow_safety_retention_openai` **Added**\n* `open_router.api_keys.list()`: \n * `request.creator_user_id` **Added**\n"
releaseNotes: |
## Python SDK Changes:
* `open_router.batch.create_batches()`: `response.results[].response.body.union(OpenResponsesResult).error.metadata.alignment.rejected.union(Array<AlignmentResponsesRejected>)[].union(tool_search_call)` **Added**
* `open_router.batch.get_batches()`: `response.results[].response.body.union(OpenResponsesResult).error.metadata.alignment.rejected.union(Array<AlignmentResponsesRejected>)[].union(tool_search_call)` **Added**
* `open_router.batch.get_results()`: `response.data[].response.body.union(OpenResponsesResult).error.metadata.alignment.rejected.union(Array<AlignmentResponsesRejected>)[].union(tool_search_call)` **Added**
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.212
version: 1.3.213
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
44 changes: 44 additions & 0 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ components:
mcp_list_tools: '#/components/schemas/OutputItemMcpListTools'
message: '#/components/schemas/OutputMessage'
reasoning: '#/components/schemas/OutputItemReasoning'
tool_search_call: '#/components/schemas/OutputItemToolSearchCall'
web_search_call: '#/components/schemas/OutputItemWebSearchCall'
propertyName: 'type'
oneOf:
Expand All @@ -820,6 +821,7 @@ components:
- $ref: '#/components/schemas/OutputItemMcpListTools'
- $ref: '#/components/schemas/OutputItemMcpCall'
- $ref: '#/components/schemas/OutputItemMcpApprovalRequest'
- $ref: '#/components/schemas/OutputItemToolSearchCall'
type: 'array'
AlignmentRule:
additionalProperties: false
Expand Down Expand Up @@ -5009,6 +5011,7 @@ components:
mcp_list_tools: '#/components/schemas/OutputItemMcpListTools'
message: '#/components/schemas/OutputMessage'
reasoning: '#/components/schemas/OutputItemReasoning'
tool_search_call: '#/components/schemas/OutputItemToolSearchCall'
web_search_call: '#/components/schemas/OutputItemWebSearchCall'
propertyName: 'type'
oneOf:
Expand All @@ -5025,6 +5028,7 @@ components:
- $ref: '#/components/schemas/OutputItemMcpListTools'
- $ref: '#/components/schemas/OutputItemMcpCall'
- $ref: '#/components/schemas/OutputItemMcpApprovalRequest'
- $ref: '#/components/schemas/OutputItemToolSearchCall'
type: 'array'
output_text:
type: 'string'
Expand Down Expand Up @@ -28249,6 +28253,7 @@ components:
mcp_list_tools: '#/components/schemas/OutputItemMcpListTools'
message: '#/components/schemas/OutputMessage'
reasoning: '#/components/schemas/OutputItemReasoning'
tool_search_call: '#/components/schemas/OutputItemToolSearchCall'
web_search_call: '#/components/schemas/OutputItemWebSearchCall'
propertyName: 'type'
oneOf:
Expand All @@ -28265,6 +28270,7 @@ components:
- $ref: '#/components/schemas/OutputItemMcpListTools'
- $ref: '#/components/schemas/OutputItemMcpCall'
- $ref: '#/components/schemas/OutputItemMcpApprovalRequest'
- $ref: '#/components/schemas/OutputItemToolSearchCall'
output_index:
type: 'integer'
sequence_number:
Expand Down Expand Up @@ -28469,6 +28475,7 @@ components:
mcp_list_tools: '#/components/schemas/OutputItemMcpListTools'
message: '#/components/schemas/OutputMessage'
reasoning: '#/components/schemas/OutputItemReasoning'
tool_search_call: '#/components/schemas/OutputItemToolSearchCall'
web_search_call: '#/components/schemas/OutputItemWebSearchCall'
propertyName: 'type'
oneOf:
Expand All @@ -28485,6 +28492,7 @@ components:
- $ref: '#/components/schemas/OutputItemMcpListTools'
- $ref: '#/components/schemas/OutputItemMcpCall'
- $ref: '#/components/schemas/OutputItemMcpApprovalRequest'
- $ref: '#/components/schemas/OutputItemToolSearchCall'
output_index:
type: 'integer'
sequence_number:
Expand Down Expand Up @@ -28861,6 +28869,42 @@ components:
- $ref: '#/components/schemas/OutputCustomToolCallItem'
- $ref: '#/components/schemas/OutputToolSearchCallItem'
- $ref: '#/components/schemas/OutputArmorBlockedItem'
OutputItemToolSearchCall:
description: 'A native client-executed tool_search_call item returned by OpenAI Responses'
example:
arguments:
query: 'weather'
call_id: 'call_search_1'
execution: 'client'
status: 'completed'
type: 'tool_search_call'
properties:
arguments: {}
call_id:
type: 'string'
execution:
default: 'client'
enum:
- 'client'
type: 'string'
id:
type: 'string'
status:
default: 'completed'
enum:
- 'in_progress'
- 'completed'
- 'incomplete'
type: 'string'
x-speakeasy-unknown-values: allow
type:
enum:
- 'tool_search_call'
type: 'string'
required:
- 'type'
- 'call_id'
type: 'object'
OutputItemWebSearchCall:
additionalProperties: {}
example:
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.803.2
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:7969cc34c0838eab9463be5d4e81c64866732b3cbc8f144c5bab6542835236c7
sourceBlobDigest: sha256:090f7d8f36fef54c65c562e285818219e14a1f2c368c1073e7f75c8c39501be1
sourceRevisionDigest: sha256:c38fba950c92790fb387ad91e97bfdc7203c77c4b6b6b33ead216e478c0235b2
sourceBlobDigest: sha256:0fde833d5c39625cd69de36899aa9faf93ed757a45496c4bce66a0fcc31384db
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:7969cc34c0838eab9463be5d4e81c64866732b3cbc8f144c5bab6542835236c7
sourceBlobDigest: sha256:090f7d8f36fef54c65c562e285818219e14a1f2c368c1073e7f75c8c39501be1
sourceRevisionDigest: sha256:c38fba950c92790fb387ad91e97bfdc7203c77c4b6b6b33ead216e478c0235b2
sourceBlobDigest: sha256:0fde833d5c39625cd69de36899aa9faf93ed757a45496c4bce66a0fcc31384db
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:620974df16d7bca2b429f6d77670ae3de55fa55cc9de4687e0b25bff380cb3f3
codeSamplesRevisionDigest: sha256:595305a918a9351fde2ed01fdf22875d09885431eaa004007d2b51a76a8c3e1f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.803.2
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4889,4 +4889,14 @@ Based on:
### Generated
- [python v1.3.212] .
### Releases
- [PyPI v1.3.212] https://pypi.org/project/openrouter/1.3.212 - .
- [PyPI v1.3.212] https://pypi.org/project/openrouter/1.3.212 - .

## 2026-11-29 04:09:35
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.213] .
### Releases
- [PyPI v1.3.213] https://pypi.org/project/openrouter/1.3.213 - .
6 changes: 6 additions & 0 deletions docs/components/alignmentresponsesrejected.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ value: components.OutputMessage = /* values here */
value: components.OutputItemReasoning = /* values here */
```

### `components.OutputItemToolSearchCall`

```python
value: components.OutputItemToolSearchCall = /* values here */
```

### `components.OutputItemWebSearchCall`

```python
Expand Down
17 changes: 17 additions & 0 deletions docs/components/outputitemtoolsearchcall.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: "OutputItemToolSearchCall"
---

A native client-executed tool_search_call item returned by OpenAI Responses


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| `arguments` | *Optional[Any]* | ➖ | N/A |
| `call_id` | *str* | ✔ | N/A |
| `execution` | [Optional[components.OutputItemToolSearchCallExecution]](../components/outputitemtoolsearchcallexecution.mdx) | ➖ | N/A |
| `id` | *Optional[str]* | ➖ | N/A |
| `status` | [Optional[components.OutputItemToolSearchCallStatus]](../components/outputitemtoolsearchcallstatus.mdx) | ➖ | N/A |
| `type` | [components.OutputItemToolSearchCallType](../components/outputitemtoolsearchcalltype.mdx) | ✔ | N/A |
15 changes: 15 additions & 0 deletions docs/components/outputitemtoolsearchcallexecution.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: "OutputItemToolSearchCallExecution"
---

## Example Usage

```python
from openrouter.components import OutputItemToolSearchCallExecution
value: OutputItemToolSearchCallExecution = "client"
```


## Values

- `"client"`
21 changes: 21 additions & 0 deletions docs/components/outputitemtoolsearchcallstatus.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "OutputItemToolSearchCallStatus"
---

## Example Usage

```python
from openrouter.components import OutputItemToolSearchCallStatus

# Open enum: unrecognized values are captured as UnrecognizedStr
value: OutputItemToolSearchCallStatus = "in_progress"
```


## Values

This is an open enum. Unrecognized values will not fail type checks.

- `"in_progress"`
- `"completed"`
- `"incomplete"`
Loading
Loading