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
48 changes: 35 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: a4856b1e808016b05e626a4211fa4836
docChecksum: c050da62049642cf923daa8e729828b7
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
releaseVersion: 0.5.13
configChecksum: ab397b01a76ca27839ba5d1bd39aa247
releaseVersion: 0.5.14
configChecksum: c92b7d7e51c3215679813d3e25c9ae74
repoURL: https://github.com/OpenRouterTeam/go-sdk.git
installationURL: https://github.com/OpenRouterTeam/go-sdk
persistentEdits:
generation_id: 226db354-eac5-4efa-bb7d-3daa6c0339d5
pristine_commit_hash: 4d2fcceb45553f9bf1f52630c21f408bf504a058
pristine_tree_hash: 75c84d9b5796ddb06f3c58bdc6a4344ca0d7d950
generation_id: 096b20cb-f032-4ffa-9fdd-086fe507c38b
pristine_commit_hash: c10e6efea5f9eba795226daf0bd5ec7737428ed0
pristine_tree_hash: 7b2d4bed6b0a245d4a8d1f55ad44041c450b3a81
features:
go:
acceptHeaders: 2.81.2
Expand Down Expand Up @@ -5253,6 +5253,22 @@ trackedFiles:
id: 712e15346453
last_write_checksum: sha1:65871b7e693b715e99d93b54d1843537c2b9e888
pristine_git_object: 39f2fbf6affa3fd2e19f92968f61054fe71a7751
docs/models/operations/classifierdimensions.mdx:
id: 0e13027e144d
last_write_checksum: sha1:7d26be647684087570cafc387bd7663805b153c5
pristine_git_object: 6d7eb45a54b710920154fed7e76c95b263257698
docs/models/operations/classifierfilters.mdx:
id: 7dcacabae6f4
last_write_checksum: sha1:21f142c68d0eddd972620a8efa9d619bbf1ca4c1
pristine_git_object: 27444c7ed3b29934c3b78023a2eafe14c1bec236
docs/models/operations/classifierfiltersfilter.mdx:
id: "805837007825"
last_write_checksum: sha1:d475efa63b745f2e3def5f374a83ac7fa1555a62
pristine_git_object: 3e1d7650916edd9017d19fdba0c1617db4c47e66
docs/models/operations/classifierfiltersvalue.mdx:
id: eacff5c94b38
last_write_checksum: sha1:bae7523e75d8edb8431d6fdad7f811ff953fce3e
pristine_git_object: 54ff9545e7ba8b8e4c1e76a6e310ab67ec0396d2
docs/models/operations/content.mdx:
id: 3885c021e578
last_write_checksum: sha1:d0aceb45ff8cb9b61a0faebc658e64517e943ba2
Expand Down Expand Up @@ -5843,8 +5859,8 @@ trackedFiles:
pristine_git_object: 659d18b72ce69dc25154b5cf55e1263af9e3f60f
docs/models/operations/queryanalyticsrequest.mdx:
id: 50fcaf5b025e
last_write_checksum: sha1:feaa0e510900fc0077efae83cc56c53d857f60e0
pristine_git_object: 8ad86667db7e7d616597def9707dcce02e8ebbe7
last_write_checksum: sha1:1c495c3b7bef1271690b5070474726bfb3c02df0
pristine_git_object: 8d6ace3112333960951ccae0b977d350515b311a
docs/models/operations/queryanalyticsresponse.mdx:
id: a18e01100431
last_write_checksum: sha1:a2ff32188d201b1639f8b7a78593cce56ed77630
Expand Down Expand Up @@ -5969,6 +5985,10 @@ trackedFiles:
id: 0888b2d6aa69
last_write_checksum: sha1:efa8053a39967602bfb1b215ea99d0a587c4a4eb
pristine_git_object: d49671626c7db20101e9244c8654915246316046
docs/models/operations/valueclassifierfilters.mdx:
id: e1cf822fc2d4
last_write_checksum: sha1:1e6cfaa6cfbd4a695200eea3ace4c533af1c8158
pristine_git_object: 794e16250e8ce6aece37d3b89f928a9889dd7ad7
docs/models/operations/valuetype.mdx:
id: 33042f33bbd6
last_write_checksum: sha1:c2e724a77717cc21744da7b84a3021f3e9e218e4
Expand Down Expand Up @@ -8715,8 +8735,8 @@ trackedFiles:
pristine_git_object: 8003a65d349c0b5b3c17fe2727ae857157e437b2
models/operations/queryanalytics.go:
id: 988cd2db88c0
last_write_checksum: sha1:c31b906edf5ec2c62a413e206359818051881f28
pristine_git_object: 1f0da2df36153104274dc17fa6724694b4f74c1f
last_write_checksum: sha1:b324fc552de581215c15e0b7f37bfe69283aba62
pristine_git_object: 9e02c3ae41008679ef5fa366386252a37ac67ffc
models/operations/sendchatcompletionrequest.go:
id: 9da92c1f7b53
last_write_checksum: sha1:71b2e7bd747a68d78fbc663d101b0f037e608759
Expand Down Expand Up @@ -8823,8 +8843,8 @@ trackedFiles:
pristine_git_object: 3dc1d1bf3c5e7387b73f1bbb0b6b456dd5e7ee9d
openrouter.go:
id: 207ad004b774
last_write_checksum: sha1:b6425e7aa6186f50f549fe7a1568627475132710
pristine_git_object: b730a7764113205898c19e64dc71bb7e7b5f3e40
last_write_checksum: sha1:bf3cc0edd8b972df0b92a77db5bd502c30affe48
pristine_git_object: 850475ebdbd1ea2fed2d23ddb9ff589ddf13f687
optionalnullable/optionalnullable.go:
id: ce60f259ead3
last_write_checksum: sha1:d6aff1a420c31e025ea21d46cf056e305ae76fe8
Expand Down Expand Up @@ -10394,4 +10414,6 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: "## Go SDK Changes:\n* `OpenRouter.Byok.Update()`: `response.Data.Provider` **Changed** (Breaking ⚠️)\n* `OpenRouter.Datasets.GetRankingsDaily()`: `request` **Changed** (Breaking ⚠️)\n* `OpenRouter.Beta.Responses.Send()`: \n * `request.ResponsesRequest` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `OpenRouter.Tts.CreateSpeech()`: \n * `request.Request.Provider.Options` **Changed** (Breaking ⚠️)\n* `OpenRouter.Stt.CreateTranscription()`: \n * `request.Request` **Changed** (Breaking ⚠️)\n * `response` **Changed**\n* `OpenRouter.Byok.List()`: \n * `request.Provider` **Changed** (Breaking ⚠️)\n * `response.Data[].Provider` **Changed** (Breaking ⚠️)\n* `OpenRouter.Byok.Create()`: \n * `request.Request.Provider` **Changed** (Breaking ⚠️)\n * `response.Data.Provider` **Changed** (Breaking ⚠️)\n* `OpenRouter.Byok.Get()`: `response.Data.Provider` **Changed** (Breaking ⚠️)\n* `OpenRouter.VideoGeneration.Generate()`: \n * `request.Request.Provider.Options` **Changed** (Breaking ⚠️)\n* `OpenRouter.Presets.CreatePresetsResponses()`: `request.ResponsesRequest` **Changed** (Breaking ⚠️)\n* `OpenRouter.Images.Generate()`: \n * `request.Request.Provider.Options` **Changed** (Breaking ⚠️)\n * `response.[].Data.union(image_generation.text_chunk)` **Added**\n * `error.status[413]` **Added**\n* `OpenRouter.Generations.GetGeneration()`: `response.Data.ProviderResponses[].RoutedServiceTier` **Added**\n* `OpenRouter.Chat.Send()`: \n * `request.ChatRequest` **Changed**\n * `response` **Changed**\n* `OpenRouter.Models.List()`: `request.Request` **Changed**\n* `OpenRouter.Presets.CreatePresetsChatCompletions()`: `request.ChatRequest` **Changed**\n* `OpenRouter.Presets.CreatePresetsMessages()`: \n * `request.MessagesRequest.Plugins[].union(pareto-router).PriceSource` **Added**\n* `OpenRouter.Stt.CreateTranscriptionMultipart()`: **Added**\n* `OpenRouter.Generations.SubmitFeedback()`: **Added**\n"
releaseNotes: |
## Go SDK Changes:
* `OpenRouter.Beta.Analytics.QueryAnalytics()`: `request.Request` **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.5.13
version: 0.5.14
additionalDependencies: {}
baseErrorName: OpenRouterError
clientServerStatusCodesAsErrors: true
Expand Down
72 changes: 72 additions & 0 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23878,6 +23878,78 @@ paths:
start: '2025-01-01T00:00:00Z'
schema:
properties:
classifier_dimensions:
description: >-
Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace.
properties:
classifier_id:
description: UUID of the classifier whose tags to group by.
example: 550e8400-e29b-41d4-a716-446655440000
format: uuid
type: string
dimension_names:
items:
description: >-
Classifier dimension name (snake_case identifier). When exactly one name is provided, the response uses it as the column key; with multiple names or none, the response uses `clf_dimension_name`/`clf_dimension_value` columns.
example: department
type: string
maxItems: 10
type: array
include_nulls:
description: >-
When true, also include generations that have no tag from this classifier. Defaults to false, which returns only classified generations.
type: boolean
required:
- classifier_id
type: object
classifier_filters:
description: >-
Filter results to generations with specific classifier tag values. Can be combined with classifier_dimensions (must use the same classifier_id) or used independently with standard dimensions.
properties:
classifier_id:
description: >-
UUID of the classifier whose tags to filter by. Must match classifier_dimensions.classifier_id when both are specified.
example: 550e8400-e29b-41d4-a716-446655440000
format: uuid
type: string
filters:
items:
properties:
field:
description: >-
Classifier dimension name to filter on (snake_case identifier, e.g. "department", "work_type").
example: department
type: string
operator:
description: >-
Filter operator. Only equality/set operators are supported (eq, neq, in, not_in) β€” ordered comparisons are not available because classification values are strings.
example: eq
type: string
value:
anyOf:
- type: string
- format: double
type: number
- items:
anyOf:
- type: string
- format: double
type: number
type: array
description: Filter value. Use a scalar (string or number) for eq/neq, or an array for in/not_in.
example: Engineering
required:
- field
- operator
- value
type: object
maxItems: 10
minItems: 1
type: array
required:
- classifier_id
- filters
type: object
dimensions:
items:
description: Dimension to group by (up to 2). Use the /meta endpoint for available dimensions.
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:28804b43e74c65b0de7086a3117a905af102d151b16136cbb3447f61f9a65715
sourceBlobDigest: sha256:4177479c5d051e87aa544e3ab1b73f7bb8d932572926340e3546fbd14208066b
sourceRevisionDigest: sha256:ab65ae6a6a56ca31121446556eb45dd872551d99c50d2d98cef495b531db8175
sourceBlobDigest: sha256:3776627eace307c1391fa34cb579a23fd8df3daa4cf1293549db53f231cd45d0
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:28804b43e74c65b0de7086a3117a905af102d151b16136cbb3447f61f9a65715
sourceBlobDigest: sha256:4177479c5d051e87aa544e3ab1b73f7bb8d932572926340e3546fbd14208066b
sourceRevisionDigest: sha256:ab65ae6a6a56ca31121446556eb45dd872551d99c50d2d98cef495b531db8175
sourceBlobDigest: sha256:3776627eace307c1391fa34cb579a23fd8df3daa4cf1293549db53f231cd45d0
codeSamplesNamespace: open-router-chat-completions-api-go-code-samples
codeSamplesRevisionDigest: sha256:4b8ab998dc76253e129002029fe0d77f0a987267857636bd7f2ea776acac2103
codeSamplesRevisionDigest: sha256:26bb8423fa2b942936d039a5b16a0c3ae74e4f85ca2f716bbe71dba8f0aeeb18
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.5.13
go get github.com/OpenRouterTeam/go-sdk@v0.5.14
```

**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 @@ -11,7 +11,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.5.13
> go get github.com/OpenRouterTeam/go-sdk@v0.5.14
> ```

<!-- 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 @@ -178,4 +178,14 @@ Based on:
### Generated
- [go v0.5.13] .
### Releases
- [Go v0.5.13] https://github.com/OpenRouterTeam/go-sdk/releases/tag/v0.5.13 - .
- [Go v0.5.13] https://github.com/OpenRouterTeam/go-sdk/releases/tag/v0.5.13 - .

## 2026-07-10 20:13:50
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.5.14] .
### Releases
- [Go v0.5.14] https://github.com/OpenRouterTeam/go-sdk/releases/tag/v0.5.14 - .
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.5.13
go get github.com/OpenRouterTeam/go-sdk@v0.5.14

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

Expand Down
14 changes: 14 additions & 0 deletions docs/models/operations/classifierdimensions.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "ClassifierDimensions"
---

Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace.


## Fields

| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `ClassifierID` | `string` | :heavy_check_mark: | UUID of the classifier whose tags to group by. | 550e8400-e29b-41d4-a716-446655440000 |
| `DimensionNames` | []`string` | :heavy_minus_sign: | N/A | |
| `IncludeNulls` | `*bool` | :heavy_minus_sign: | When true, also include generations that have no tag from this classifier. Defaults to false, which returns only classified generations. | |
Loading
Loading