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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 26 additions & 13 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
lockVersion: 2.0.0
id: 9eea3e30-2722-4060-973b-57b7f1f75dc0
management:
docChecksum: 2468f1b04b9c527842da58c63127a43d
docChecksum: ce31dfbfd7e5761a7c18028a46759cd2
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
releaseVersion: 0.9.77
configChecksum: ab2cc8301ec4c92ec97c71579bd9f8bb
releaseVersion: 0.9.78
configChecksum: 5d4e55dd604b3d01f0ac857f69538b3b
repoURL: https://github.com/OpenRouterTeam/go-sdk.git
installationURL: https://github.com/OpenRouterTeam/go-sdk
persistentEdits:
generation_id: d25781b1-fcf1-4482-a181-06a6bb865cb2
pristine_commit_hash: f7799a12b7f5b46d936525e86d56e3e8ee4a6f09
pristine_tree_hash: f4d4dbc37b7489f702425423906f705dba9a421a
generation_id: a97c962b-6f36-4d62-8c94-7e1291f0bd5b
pristine_commit_hash: 998b810a73c7c554027fbdfe563dbef1eed05b5e
pristine_tree_hash: 5730e6578e81004490e527dffa9a48adc100952c
features:
go:
acceptHeaders: 2.81.2
Expand Down Expand Up @@ -1375,6 +1375,10 @@ trackedFiles:
id: b2df30b470b1
last_write_checksum: sha1:990f1b525e7991180d134464d92c5233982f50ed
pristine_git_object: a520320b1605e945e8cfff1bdc458aeaf9ecccb7
docs/models/components/authmode.mdx:
id: ae1b802f02fe
last_write_checksum: sha1:46706ce94ffbe9dc746e974d730de049a22f7290
pristine_git_object: 22d77b599aa885f02020080b4d7e9c73c150f35b
docs/models/components/autobetarouterplugin.mdx:
id: 604b3c68d3cd
last_write_checksum: sha1:e1033c6c51ab0b045888f3ee7fe1644ecfeb9d33
Expand Down Expand Up @@ -4925,8 +4929,8 @@ trackedFiles:
pristine_git_object: 21c7e59045b415a520bc19d983683c87cc0af05a
docs/models/components/observabilitys3destinationconfig.mdx:
id: b6e66e3fbcf9
last_write_checksum: sha1:eb4dfe1f8bb32e110dd9ff02761ace2a67f373b7
pristine_git_object: fb2e4f95cb5d089f09dc8ce0717eacf33bd9c1cb
last_write_checksum: sha1:ac2b27ed2652c85b0e9b23a0e6c79d69d7fe2cc2
pristine_git_object: e0787873bfc07b373a63328ab211176fa3a7e7f1
docs/models/components/observabilitys3destinationtype.mdx:
id: 36f3222e1d4d
last_write_checksum: sha1:fa2fc328fc9a9549974638df460009581e0bf4f3
Expand Down Expand Up @@ -6275,6 +6279,10 @@ trackedFiles:
id: b9404ce1620e
last_write_checksum: sha1:9a45cae039e6df88467508848bdc68d88b7f7668
pristine_git_object: d2753c8699c8177a7c216ce099da70b730697b05
docs/models/components/providerenum.mdx:
id: 5192191c3f49
last_write_checksum: sha1:18298b59e68b98c5f36753acd26078adc649b5b1
pristine_git_object: e0d70c37be829e0c240dfb190e908973303e587c
docs/models/components/providername.mdx:
id: 8e0a10860f62
last_write_checksum: sha1:08c05bee9a0fe3cf8965890c5601123c1ddeaf2d
Expand Down Expand Up @@ -11529,8 +11537,8 @@ trackedFiles:
pristine_git_object: 30d82d87412c1bb785ecffc825f8ccbc7093a249
models/components/observabilitys3destination.go:
id: 5edccceac5ed
last_write_checksum: sha1:648ff9cdab4526beb5ae6c7dfe78bd42b844fd9b
pristine_git_object: 0671f3b69ce46eefbb072a3d257c0a43c148fde5
last_write_checksum: sha1:3c4d8943a75b36582edb207a737937e245320b18
pristine_git_object: 1465442d6a2c1e51203e1a7a356096ac942898fe
models/components/observabilitysentrydestination.go:
id: 1b8e83bcac45
last_write_checksum: sha1:2f92a24d0a308b50bf4d69ec7796c330f6000892
Expand Down Expand Up @@ -13417,8 +13425,8 @@ trackedFiles:
pristine_git_object: 46df65b755cfb5609b7c6763fcbb8e7d3cbd44b4
openrouter.go:
id: 207ad004b774
last_write_checksum: sha1:59fac8d8f3aedad758909131f148bcf975766bca
pristine_git_object: d4c6dca4fd773703f8ef36c38b86224325d8153e
last_write_checksum: sha1:c99957636136c1d346c87d249e32c47bb2b2c915
pristine_git_object: 3b8c98b8b4060e8c9d9a891e471f32f837ff280b
optionalnullable/optionalnullable.go:
id: ce60f259ead3
last_write_checksum: sha1:d6aff1a420c31e025ea21d46cf056e305ae76fe8
Expand Down Expand Up @@ -17846,4 +17854,9 @@ examples:
"500":
application/json: {"error": {"code": 404, "message": "Intern not found"}}
examplesVersion: 1.0.2
releaseNotes: "## Go SDK Changes:\n* `OpenRouter.Presets.CreatePresetsMessages()`: \n * `request.MessagesRequest.Messages[].Content.union(Array<>)[].union(tool_addition).Tool.union(tool_definition)` **Added**\n"
releaseNotes: |
## Go SDK Changes:
* `OpenRouter.Observability.List()`: `response.Data[].union(s3).Config` **Changed**
* `OpenRouter.Observability.Create()`: `response.Data.union(s3).Config` **Changed**
* `OpenRouter.Observability.Get()`: `response.Data.union(s3).Config` **Changed**
* `OpenRouter.Observability.Update()`: `response.Data.union(s3).Config` **Changed**
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
go:
version: 0.9.77
version: 0.9.78
additionalDependencies: {}
baseErrorName: OpenRouterError
clientServerStatusCodesAsErrors: true
Expand Down
76 changes: 74 additions & 2 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20835,13 +20835,51 @@ components:
accessKeyId:
minLength: 1
type: 'string'
visibleWhen:
- field: 'authMode'
in:
- 'access_keys'
- ''
authMode:
default: 'access_keys'
description: 'IAM role: OpenRouter assumes a role in your AWS account with short-lived STS credentials, so you don''t share long-lived keys.'
enum:
- 'access_keys'
- 'iam_role'
optionLabels:
access_keys: 'Access keys'
iam_role: 'IAM role'
type: 'string'
visibleWhen:
- field: 'provider'
in:
- 'aws'
x-speakeasy-unknown-values: allow
bucketName:
minLength: 1
type: 'string'
endpoint:
description: 'Only for S3-compatible services like Cloudflare R2 (https://account-id.r2.cloudflarestorage.com) or MinIO. Leave blank for standard AWS S3.'
format: 'uri'
type: 'string'
visibleWhen:
- field: 'provider'
in:
- 'cloudflare_r2'
- 'gcs'
- 'other'
- ''
externalId:
description: 'Generated by OpenRouter when you save. Require it as sts:ExternalId in your role''s trust policy.'
readOnly: true
type: 'string'
visibleWhen:
- field: 'provider'
in:
- 'aws'
- field: 'authMode'
in:
- 'iam_role'
headers:
additionalProperties:
type: 'string'
Expand All @@ -20854,17 +20892,51 @@ components:
prefix:
default: 'openrouter-traces'
type: 'string'
provider:
description: 'The object storage service that hosts the bucket. AWS S3 supports IAM role authentication; the other providers use access keys.'
enum:
- 'aws'
- 'cloudflare_r2'
- 'gcs'
- 'other'
optionLabels:
aws: 'AWS S3'
cloudflare_r2: 'Cloudflare R2'
gcs: 'Google Cloud Storage'
other: 'Other S3-compatible'
type: 'string'
x-speakeasy-unknown-values: allow
region:
description: 'Required for IAM role authentication. With access keys, AWS S3 detects the bucket region when you leave this blank.'
type: 'string'
roleArn:
description: 'The IAM role in your account that OpenRouter assumes. Its trust policy must allow sts:AssumeRole from arn:aws:iam::536697249728:role/openrouter-broadcast-exporter and require the external ID below, and its permissions must allow s3:PutObject on the bucket and prefix (plus kms:GenerateDataKey for SSE-KMS buckets).'
pattern: '^arn:aws(?:-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@/-]{1,512}$'
type: 'string'
visibleWhen:
- field: 'provider'
in:
- 'aws'
- field: 'authMode'
in:
- 'iam_role'
secretAccessKey:
minLength: 1
type: 'string'
visibleWhen:
- field: 'authMode'
in:
- 'access_keys'
- ''
sessionToken:
type: 'string'
visibleWhen:
- field: 'authMode'
in:
- 'access_keys'
- ''
required:
- 'bucketName'
- 'accessKeyId'
- 'secretAccessKey'
type: 'object'
created_at:
description: 'ISO timestamp of when the destination was created.'
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:bf8a6f4031185c5cc93c7012c69c4a32de653035fb082c1ddfd4f2176ef11fdf
sourceBlobDigest: sha256:64029a8464b2dd0515167ee537534ba24ca83c4fc23f328571c7ce169f100ab6
sourceRevisionDigest: sha256:d9aa64cbcafc6b149665f44ae1c61e3b46029a207bffbb4f3cc7cf9d3334e141
sourceBlobDigest: sha256:ba514f65c59893d5473ab5424fa5b044e8d90dd48a832381141a0bc4593c343c
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:bf8a6f4031185c5cc93c7012c69c4a32de653035fb082c1ddfd4f2176ef11fdf
sourceBlobDigest: sha256:64029a8464b2dd0515167ee537534ba24ca83c4fc23f328571c7ce169f100ab6
sourceRevisionDigest: sha256:d9aa64cbcafc6b149665f44ae1c61e3b46029a207bffbb4f3cc7cf9d3334e141
sourceBlobDigest: sha256:ba514f65c59893d5473ab5424fa5b044e8d90dd48a832381141a0bc4593c343c
codeSamplesNamespace: open-router-chat-completions-api-go-code-samples
codeSamplesRevisionDigest: sha256:c23563f3d727452647d0230ab70c6bacc6841e6ba706ef2f7e8bd7d1de0eed6b
codeSamplesRevisionDigest: sha256:2e472602a085a7bbb82602f1015617ee22762437d095515225b7188765beca8c
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
Expand Down
2 changes: 1 addition & 1 deletion OVERVIEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ go get github.com/OpenRouterTeam/go-sdk
For beta releases, pin an explicit version:

```bash
go get github.com/OpenRouterTeam/go-sdk@v0.9.77
go get github.com/OpenRouterTeam/go-sdk@v0.9.78
```

**Requirements:** Go 1.25 or higher
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To learn more, see the [API Reference](https://openrouter.ai/docs/sdks/go/api-re
> This SDK is in **beta**. Pin to a specific version to avoid unexpected breaking changes:
>
> ```bash
> go get github.com/OpenRouterTeam/go-sdk@v0.9.77
> go get github.com/OpenRouterTeam/go-sdk@v0.9.78
> ```

<!-- No Summary [summary] -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3288,4 +3288,14 @@ Based on:
### Generated
- [go v0.9.77] .
### Releases
- [Go v0.9.77] https://github.com/OpenRouterTeam/go-sdk/releases/tag/v0.9.77 - .
- [Go v0.9.77] https://github.com/OpenRouterTeam/go-sdk/releases/tag/v0.9.77 - .

## 2026-10-27 00:13:23
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.9.78] .
### Releases
- [Go v0.9.78] https://github.com/OpenRouterTeam/go-sdk/releases/tag/v0.9.78 - .
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ provider selection, and unified billing.

This SDK is in beta. Pin to a specific module version to avoid unexpected breaking changes:

go get github.com/OpenRouterTeam/go-sdk@v0.9.77
go get github.com/OpenRouterTeam/go-sdk@v0.9.78

For full API documentation, visit: https://openrouter.ai/docs/client-sdks/go/overview

Expand Down
6 changes: 3 additions & 3 deletions docs/models/components/aabenchmarkentry.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ Artificial Analysis benchmark index scores.

| Field | Type | Required | Description | Example |
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
| `AgenticIndex` | `*float64` | :heavy_check_mark: | Artificial Analysis Agentic Index score | 55.8 |
| `CodingIndex` | `*float64` | :heavy_check_mark: | Artificial Analysis Coding Index score | 63.2 |
| `IntelligenceIndex` | `*float64` | :heavy_check_mark: | Artificial Analysis Intelligence Index score | 71.4 |
| `AgenticIndex` | `*float64` | βœ… | Artificial Analysis Agentic Index score | 55.8 |
| `CodingIndex` | `*float64` | βœ… | Artificial Analysis Coding Index score | 63.2 |
| `IntelligenceIndex` | `*float64` | βœ… | Artificial Analysis Intelligence Index score | 71.4 |
Loading