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
  •  
  •  
  •  
640 changes: 27 additions & 613 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
go:
version: 0.9.74
version: 0.9.75
additionalDependencies: {}
baseErrorName: OpenRouterError
clientServerStatusCodesAsErrors: true
Expand Down
17,932 changes: 7,272 additions & 10,660 deletions .speakeasy/out.openapi.yaml

Large diffs are not rendered by default.

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:979377bc2fc9dd14b59a56a29fd03c70e667facc0a54a44e38eb216e6c70bb12
sourceBlobDigest: sha256:8dcda949dff806c81167813248db1fd3b237c36df97bed8e8d3faa1b68ca1323
sourceRevisionDigest: sha256:adcdea8393524722e2246bab6e7ad9c52ae014faab41f4cf5b7d216f2e869070
sourceBlobDigest: sha256:706d5278b55a87422b318d5d12aadf2f3dfe4ffa5fc56b1da93707ca14c90143
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:979377bc2fc9dd14b59a56a29fd03c70e667facc0a54a44e38eb216e6c70bb12
sourceBlobDigest: sha256:8dcda949dff806c81167813248db1fd3b237c36df97bed8e8d3faa1b68ca1323
sourceRevisionDigest: sha256:adcdea8393524722e2246bab6e7ad9c52ae014faab41f4cf5b7d216f2e869070
sourceBlobDigest: sha256:706d5278b55a87422b318d5d12aadf2f3dfe4ffa5fc56b1da93707ca14c90143
codeSamplesNamespace: open-router-chat-completions-api-go-code-samples
codeSamplesRevisionDigest: sha256:d6372ccb1d583f2f3ff7adfc86010e065dd807e001b0c91a98adcccf54a1b149
codeSamplesRevisionDigest: sha256:bd22aff746f74494020e3166af3c54dc472113195867af35102d08bed1105ee1
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.74
go get github.com/OpenRouterTeam/go-sdk@v0.9.75
```

**Requirements:** Go 1.25 or higher
Expand Down
20 changes: 1 addition & 19 deletions 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.74
> go get github.com/OpenRouterTeam/go-sdk@v0.9.75
> ```

<!-- No Summary [summary] -->
Expand Down Expand Up @@ -308,24 +308,6 @@ func main() {
* [ListModels](docs/sdks/images/README.md#listmodels) - List image generation models
* [ListModelEndpoints](docs/sdks/images/README.md#listmodelendpoints) - List endpoints for an image model

### [Interns](docs/sdks/interns/README.md)

* [ListInterns](docs/sdks/interns/README.md#listinterns) - List interns
* [CreateIntern](docs/sdks/interns/README.md#createintern) - Create an intern
* [DeleteIntern](docs/sdks/interns/README.md#deleteintern) - Delete an intern
* [GetIntern](docs/sdks/interns/README.md#getintern) - Get an intern
* [UpdateIntern](docs/sdks/interns/README.md#updateintern) - Update an intern
* [GetInternConnections](docs/sdks/interns/README.md#getinternconnections) - List an intern's connections
* [GetInternDaemon](docs/sdks/interns/README.md#getinterndaemon) - Get an intern's daemon access
* [~~GetInternDaemonAccess~~](docs/sdks/interns/README.md#getinterndaemonaccess) - Get an intern's daemon access (deprecated alias) :warning: **Deprecated**
* [~~SignInternDaemonAccessRequest~~](docs/sdks/interns/README.md#signinterndaemonaccessrequest) - Sign a daemon request with the caller's identity (deprecated alias) :warning: **Deprecated**
* [SignInternDaemonRequest](docs/sdks/interns/README.md#signinterndaemonrequest) - Sign a daemon request with the caller's identity
* [GetInternIcon](docs/sdks/interns/README.md#getinternicon) - Get an intern's icon
* [ProvisionIntern](docs/sdks/interns/README.md#provisionintern) - Provision an intern
* [SuspendIntern](docs/sdks/interns/README.md#suspendintern) - Suspend an intern
* [Chat](docs/sdks/interns/README.md#chat) - Stream a chat completion with an intern
* [Invoke](docs/sdks/interns/README.md#invoke) - Start an intern run without waiting for it

### [Models](docs/sdks/models/README.md)

* [Get](docs/sdks/models/README.md#get) - Get a model by its slug
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3258,4 +3258,14 @@ Based on:
### Generated
- [go v0.9.74] .
### Releases
- [Go v0.9.74] https://github.com/OpenRouterTeam/go-sdk/releases/tag/v0.9.74 - .
- [Go v0.9.74] https://github.com/OpenRouterTeam/go-sdk/releases/tag/v0.9.74 - .

## 2026-10-23 17:57:46
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.9.75] .
### Releases
- [Go v0.9.75] https://github.com/OpenRouterTeam/go-sdk/releases/tag/v0.9.75 - .
14 changes: 0 additions & 14 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,6 @@ import (
"net/url"
)

// Chat - Stream a chat completion with an intern
// Sends a prompt to one of your interns and streams the reply as OpenAI-compatible server-sent events ending with `[DONE]`. The run executes on the intern, which may pause to ask you something. It then streams one `openrouter.provide_input` tool call and finishes with `finish_reason: "tool_calls"`, and the run stays open on the intern.
//
// Every response, whether it ends with `stop`, `tool_calls` or `error`, is followed by a final chunk with empty `choices` that carries `session_id`, then `data: [DONE]`. That chunk carries the `usage` the intern reported for the run, after `stop` or `error`, and `null` when the intern reported none. After `tool_calls` its `usage` is `null` because the turn is not over. Read through `[DONE]`: the `session_id` you need to reply arrives after the `tool_calls` finish chunk.
//
// To answer, send a second request with the same `session_id`, the assistant message echoing that tool call, and a `tool` message whose `tool_call_id` is the tool call id and whose `content` is the answer. The answer is delivered to the run that asked and the stream continues from where it paused. A question stays open for its interaction deadline (5 minutes by default) and the run is cancelled when that passes. Rejected replies do not extend the deadline.
//
// Closing the connection after the `[DONE]` that follows `finish_reason: "tool_calls"` keeps the run alive. Disconnecting while a response is still streaming cancels the run. The stream writes a `: keepalive` comment whenever nothing else has been written for 30 seconds, so a disconnect is noticed within that interval even while the intern is silent.
//
// A run the intern ends while you are still connected, by cancellation or by a deadline, ends the stream with a `finish_reason: "error"` chunk carrying `410` and reason `run_ended`, then the final empty-`choices` chunk and `[DONE]`. That error reports only an ending the intern confirmed. A connection that breaks without that confirmation ends with reason `stream_severed`, and a client that has already disconnected is promised no final event.
//
// Set `approval_mode` to `manual` to have the intern ask before approval-bearing tools such as the shell. Omitted, the run self-drives and consents on your behalf. The mode belongs to the run started by that prompt and must be repeated on later prompts.
//
// Available to interns programme members. Callers outside the programme receive `404` for every path under `/api/v1/interns`.
type Chat struct {
rootSDK *OpenRouter
sdkConfiguration config.SDKConfiguration
Expand Down
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.74
go get github.com/OpenRouterTeam/go-sdk@v0.9.75

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` | βœ… | 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 |
| `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 |
12 changes: 0 additions & 12 deletions docs/models/components/account.mdx

This file was deleted.

Loading
Loading