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
164 changes: 101 additions & 63 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.0.19
version: 1.0.20
additionalDependencies:
dev: {}
main: {}
Expand Down
123 changes: 101 additions & 22 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,10 @@ components:
type:
- 'string'
- 'null'
encrypted_content:
type:
- 'string'
- 'null'
type:
enum:
- 'compaction'
Expand Down Expand Up @@ -12058,6 +12062,10 @@ components:
type:
- 'string'
- 'null'
encrypted_content:
type:
- 'string'
- 'null'
type:
enum:
- 'compaction_delta'
Expand Down Expand Up @@ -12108,6 +12116,10 @@ components:
type:
- 'string'
- 'null'
encrypted_content:
type:
- 'string'
- 'null'
type:
enum:
- 'compaction'
Expand Down Expand Up @@ -12460,6 +12472,10 @@ components:
type:
- 'string'
- 'null'
encrypted_content:
type:
- 'string'
- 'null'
type:
enum:
- 'compaction'
Expand Down Expand Up @@ -13241,6 +13257,7 @@ components:
- 'Modular'
- 'Moonshot AI'
- 'Morph'
- 'VoyageAI by MongoDB'
- 'NCompass'
- 'Nebius'
- 'Nex AGI'
Expand Down Expand Up @@ -13404,18 +13421,46 @@ components:
type: 'tool_reference'
type: 'tool_addition'
properties:
cache_control:
$ref: '#/components/schemas/AnthropicCacheControlDirective'
tool:
properties:
name:
type: 'string'
type:
enum:
- 'tool_reference'
type: 'string'
required:
- 'type'
- 'name'
type: 'object'
oneOf:
- properties:
name:
type: 'string'
type:
enum:
- 'tool_reference'
type: 'string'
required:
- 'type'
- 'name'
type: 'object'
- properties:
name:
type: 'string'
server_name:
type: 'string'
type:
enum:
- 'mcp_tool_reference'
type: 'string'
required:
- 'type'
- 'name'
- 'server_name'
type: 'object'
- properties:
server_name:
type: 'string'
type:
enum:
- 'mcp_toolset_reference'
type: 'string'
required:
- 'type'
- 'server_name'
type: 'object'
type:
enum:
- 'tool_addition'
Expand All @@ -13432,18 +13477,46 @@ components:
type: 'tool_reference'
type: 'tool_removal'
properties:
cache_control:
$ref: '#/components/schemas/AnthropicCacheControlDirective'
tool:
properties:
name:
type: 'string'
type:
enum:
- 'tool_reference'
type: 'string'
required:
- 'type'
- 'name'
type: 'object'
oneOf:
- properties:
name:
type: 'string'
type:
enum:
- 'tool_reference'
type: 'string'
required:
- 'type'
- 'name'
type: 'object'
- properties:
name:
type: 'string'
server_name:
type: 'string'
type:
enum:
- 'mcp_tool_reference'
type: 'string'
required:
- 'type'
- 'name'
- 'server_name'
type: 'object'
- properties:
server_name:
type: 'string'
type:
enum:
- 'mcp_toolset_reference'
type: 'string'
required:
- 'type'
- 'server_name'
type: 'object'
type:
enum:
- 'tool_removal'
Expand Down Expand Up @@ -16773,6 +16846,7 @@ components:
enum:
- 'end_turn'
- 'max_tokens'
- 'model_context_window_exceeded'
- 'stop_sequence'
- 'tool_use'
- 'pause_turn'
Expand Down Expand Up @@ -19010,6 +19084,7 @@ components:
- 'Modular'
- 'Moonshot AI'
- 'Morph'
- 'VoyageAI by MongoDB'
- 'NCompass'
- 'Nebius'
- 'Nex AGI'
Expand Down Expand Up @@ -19428,6 +19503,9 @@ components:
venice:
additionalProperties: {}
type: 'object'
voyageai:
additionalProperties: {}
type: 'object'
wafer:
additionalProperties: {}
type: 'object'
Expand Down Expand Up @@ -19724,6 +19802,7 @@ components:
- 'Modular'
- 'Moonshot AI'
- 'Morph'
- 'VoyageAI by MongoDB'
- 'NCompass'
- 'Nebius'
- 'Nex AGI'
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.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:00d4a3b5a3f008f2b46f301a3e7310d397c100a10e6c70418d60121a4865e259
sourceBlobDigest: sha256:84f6a4b5f0ae7eeed219cd9ab1049f6181593d3784464dd93240aff6fd727e74
sourceRevisionDigest: sha256:bb9814e3281a9e0c3024eaa6567726ce1522ce6ccf1a05f1206563bccba3bcec
sourceBlobDigest: sha256:040172eadbe8a42c5cc61b80aa158f3211bac5e469aca169ad8d0555056d3bea
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:00d4a3b5a3f008f2b46f301a3e7310d397c100a10e6c70418d60121a4865e259
sourceBlobDigest: sha256:84f6a4b5f0ae7eeed219cd9ab1049f6181593d3784464dd93240aff6fd727e74
sourceRevisionDigest: sha256:bb9814e3281a9e0c3024eaa6567726ce1522ce6ccf1a05f1206563bccba3bcec
sourceBlobDigest: sha256:040172eadbe8a42c5cc61b80aa158f3211bac5e469aca169ad8d0555056d3bea
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:fde97e93bd267a0402aa8338e3d771c4625562ac29d74bcff2211d824e867055
codeSamplesRevisionDigest: sha256:60f6bcb0840b8a546ae2fc33b9b02a72286fdf3d65c8ca7007e838b5bb95da5d
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -769,4 +769,14 @@ Based on:
### Generated
- [python v1.0.19] .
### Releases
- [PyPI v1.0.19] https://pypi.org/project/openrouter/1.0.19 - .
- [PyPI v1.0.19] https://pypi.org/project/openrouter/1.0.19 - .

## 2026-07-24 20:13:11
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.0.20] .
### Releases
- [PyPI v1.0.20] https://pypi.org/project/openrouter/1.0.20 - .
14 changes: 7 additions & 7 deletions docs/components/additionaltoolsitemtoolfunction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Function tool definition

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `name` | *str* | :heavy_check_mark: | N/A |
| `parameters` | Dict[str, *Any*] | :heavy_check_mark: | N/A |
| `strict` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A |
| `type` | [components.AdditionalToolsItemToolType](../components/additionaltoolsitemtooltype.mdx) | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `name` | *str* | :heavy_check_mark: | N/A |
| `parameters` | Dict[str, *Any*] | :heavy_check_mark: | N/A |
| `strict` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A |
| `type` | [components.AdditionalToolsItemTypeFunction](../components/additionaltoolsitemtypefunction.mdx) | :heavy_check_mark: | N/A |
15 changes: 0 additions & 15 deletions docs/components/additionaltoolsitemtooltype.mdx

This file was deleted.

15 changes: 15 additions & 0 deletions docs/components/additionaltoolsitemtypefunction.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: "AdditionalToolsItemTypeFunction"
---

## Example Usage

```python
from openrouter.components import AdditionalToolsItemTypeFunction
value: AdditionalToolsItemTypeFunction = "function"
```


## Values

- `"function"`
Loading
Loading