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
31 changes: 14 additions & 17 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: cbbd5d542938008beaff4d6e86d102cf
docChecksum: 9d769fcdbe0919517da5781c6203f633
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
releaseVersion: 0.7.82
configChecksum: 9896dfac8e380632f597de981ab540b2
releaseVersion: 0.7.83
configChecksum: 297e142deefe5aa36741cfa89efd87f1
repoURL: https://github.com/OpenRouterTeam/go-sdk.git
installationURL: https://github.com/OpenRouterTeam/go-sdk
persistentEdits:
generation_id: 969d12aa-86e5-4b5c-aad2-f96610d708d4
pristine_commit_hash: 1a1e3b1e869279b0fc5dba35488e332ca1b19006
pristine_tree_hash: f63df7eb6cb60f1c40c8444b9cbbbe0fecd4421c
generation_id: 2b81d95b-9e1e-4064-b273-a8f799939693
pristine_commit_hash: dff0cca7d565702803d3c4b576df9535b57bc398
pristine_tree_hash: 0ed20ac7d6a65fe4fbb5d3297f65ef091e1df292
features:
go:
acceptHeaders: 2.81.2
Expand Down Expand Up @@ -2219,8 +2219,8 @@ trackedFiles:
pristine_git_object: bb0885efc789e5e1e94c6352d79b2582e83679a6
docs/models/components/fusionplugin.mdx:
id: b4f3bf7714aa
last_write_checksum: sha1:e96e3b2067fc4226e59b061e732a53d671e85163
pristine_git_object: 764cbc8236bb36b63414fc4c7a5f454f60a5e231
last_write_checksum: sha1:3b96c554b5b0a0cd57059ce2d9143eb1ce201ccd
pristine_git_object: 3123da832ad6a62d29ff78549dfc2c6da6f31c2f
docs/models/components/fusionpluginid.mdx:
id: 9c0efb1d0838
last_write_checksum: sha1:d7c2fba173c1de6b5117d61388207f413da9e5e4
Expand Down Expand Up @@ -4343,8 +4343,8 @@ trackedFiles:
pristine_git_object: 94a959054ca3a02742c909f6afffe028b1a7fe05
docs/models/components/presetenum.mdx:
id: a729a415db80
last_write_checksum: sha1:73beb30afaae1224aa606a77c10edb8463e51b8f
pristine_git_object: c6a0c133b9afc8b8926a56629b009c4d805d6eae
last_write_checksum: sha1:70fc61d72df0df09ea300ab676093b85abc3f47a
pristine_git_object: 1ae4dc9a2bd957ec67a8788584459021adcab348
docs/models/components/presetstatus.mdx:
id: 63c862c75be9
last_write_checksum: sha1:8f96d9cc23f2c8970163f55ec150cd14b01680ad
Expand Down Expand Up @@ -7963,8 +7963,8 @@ trackedFiles:
pristine_git_object: 1ea5a756a2a475b432b444907ce37354ad60297d
models/components/fusionplugin.go:
id: ad7a63c688b2
last_write_checksum: sha1:6299827fc656452ef4dcd862d3c9523cffd779ad
pristine_git_object: 59630f4856ec8e1423bae92715a4db067f12397b
last_write_checksum: sha1:24c572dc888c0021dee2586efb509337852b248b
pristine_git_object: 23600adcd53ee0cd5cfc7690f40f0ad1e3c7a97f
models/components/fusionservertoolconfig.go:
id: 11a6494de9f7
last_write_checksum: sha1:2add72c1b22a3ae8ab64c8ba9faec17d0c66edce
Expand Down Expand Up @@ -9919,8 +9919,8 @@ trackedFiles:
pristine_git_object: 5e3a2cdf8cb4ed4f5378b712293cba9c82074f16
openrouter.go:
id: 207ad004b774
last_write_checksum: sha1:529da82ef45a5110d55f6ddd1f544f69bb0d6e94
pristine_git_object: 893e42a1d966b8d7a649b3a405af7483bf808de5
last_write_checksum: sha1:8f8f6fa6bac3925a84b7c62d5c8b3c3f19ae2d75
pristine_git_object: db4039e3426be1bca5728cfabfb92af348ed3366
optionalnullable/optionalnullable.go:
id: ce60f259ead3
last_write_checksum: sha1:d6aff1a420c31e025ea21d46cf056e305ae76fe8
Expand Down Expand Up @@ -11846,6 +11846,3 @@ examples:
"503":
application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}}
examplesVersion: 1.0.2
releaseNotes: |
## Go SDK Changes:
* `OpenRouter.Images.ListModelEndpoints()`: `response.Endpoints[].Pricing[].Unit.Enum(request)` **Added**
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.7.82
version: 0.7.83
additionalDependencies: {}
baseErrorName: OpenRouterError
clientServerStatusCodesAsErrors: true
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9128,7 +9128,7 @@ components:
model: '~anthropic/claude-opus-latest'
properties:
analysis_models:
description: 'Slugs of models to run in parallel as the "expert panel" the analyst analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest).'
description: 'For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, slugs of models to run in parallel as the "expert panel" the analyst analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest).'
example:
- '~anthropic/claude-opus-latest'
- '~openai/gpt-latest'
Expand All @@ -9139,24 +9139,24 @@ components:
minItems: 1
type: 'array'
enabled:
description: 'Set to false to disable the fusion plugin for this request. Defaults to true.'
description: 'Set to false to disable Fusion configuration for a run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool. Defaults to true.'
type: 'boolean'
id:
enum:
- 'fusion'
type: 'string'
max_tool_calls:
description: 'Maximum number of tool-calling steps each panelist (analysis model) and the analyst model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 4. Capped at 16.'
description: 'For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, the maximum number of tool-calling steps each panelist (analysis model) and the analyst model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 4. Capped at 16.'
example: 12
maximum: 16
minimum: 1
type: 'integer'
model:
description: 'Slug of the model that performs both the analyst step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset.'
description: 'For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, the slug of the model that performs both the analyst step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset.'
example: '~anthropic/claude-opus-latest'
type: 'string'
preset:
description: 'A curated OpenRouter fusion preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset''s analysis_models panel and analyst model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence.'
description: 'Configuration for a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool. A curated OpenRouter preset (slugs follow `<task>-<tier>`, e.g. `general-high`). Expands server-side into the preset''s analysis_models panel and analyst model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence.'
enum:
- 'general-high'
- 'general-budget'
Expand All @@ -9165,7 +9165,7 @@ components:
type: 'string'
x-speakeasy-unknown-values: allow
tools:
description: 'Server tools available to panelist and analyst inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only).'
description: 'For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, server tools available to panelist and analyst inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only).'
example:
- parameters:
excluded_domains:
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:1d4902bd89e36b96fa401284367d9fb8810a8171bc882d764639ebcf0235b798
sourceBlobDigest: sha256:361e32c3d8c6135da4baffc0b72c358a21d8f447ca0ad02112b7e6948519749e
sourceRevisionDigest: sha256:bba9fa4a2886c2f0a7b9f1f640fea7fa2f52fb7d4a852fe37539650094e1eaa7
sourceBlobDigest: sha256:0e2b628b896e777c0c20607bb0cbffa0f3a2c594f3263f82d1e7f1800a255f0f
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:1d4902bd89e36b96fa401284367d9fb8810a8171bc882d764639ebcf0235b798
sourceBlobDigest: sha256:361e32c3d8c6135da4baffc0b72c358a21d8f447ca0ad02112b7e6948519749e
sourceRevisionDigest: sha256:bba9fa4a2886c2f0a7b9f1f640fea7fa2f52fb7d4a852fe37539650094e1eaa7
sourceBlobDigest: sha256:0e2b628b896e777c0c20607bb0cbffa0f3a2c594f3263f82d1e7f1800a255f0f
codeSamplesNamespace: open-router-chat-completions-api-go-code-samples
codeSamplesRevisionDigest: sha256:f93af3d02f9e52ab116f51aa1c2c6d4594f5729abb263359e55ab226e67fe869
codeSamplesRevisionDigest: sha256:29555625c5a186bb503cc2124dcadcca89c2c4d91550b6195b61ea8f3c5a0ca9
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.7.82
go get github.com/OpenRouterTeam/go-sdk@v0.7.83
```

**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.7.82
> go get github.com/OpenRouterTeam/go-sdk@v0.7.83
> ```

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

## 2026-08-25 22:46:34
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.7.83] .
### Releases
- [Go v0.7.83] https://github.com/OpenRouterTeam/go-sdk/releases/tag/v0.7.83 - .
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.7.82
go get github.com/OpenRouterTeam/go-sdk@v0.7.83

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

Expand Down
Loading
Loading