From 20d1a3f0f87da7421b100be06235a9a024c05a16 Mon Sep 17 00:00:00 2001 From: "ark-hand[bot]" <315378070+ark-hand[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2026 17:20:19 +0800 Subject: [PATCH] fix(examples): use versioned responses model ID Sync-Source-Commit: c1201760f83a1aee0c304e9b00ee1f9b68262875 Ark-APIs-Commit: 1bd1a7d78c7eae06ec2849b22f0d018e1a4b216c Hand-Written-Reason: Manual example update (versioned responses model ID). No ark-apis regeneration involved; attributed to the same ark-apis snapshot as parent 4b9b1396. --- examples/agents/main.go | 2 +- examples/listinputitems/main.go | 2 +- examples/responses/basic/main.go | 2 +- examples/responses/doubao_app/main.go | 2 +- examples/responses/function_call/main.go | 2 +- examples/responses/mcp/main.go | 2 +- examples/responses/web_search/main.go | 2 +- examples/sessions_loop/main.go | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/agents/main.go b/examples/agents/main.go index 574787b..fb0b2b5 100644 --- a/examples/agents/main.go +++ b/examples/agents/main.go @@ -6,7 +6,7 @@ // Runs against the outward /api/v3/agents endpoint. Requires: // // export ARK_API_KEY=... -// export ARK_MODEL_ID=doubao-seed-2-1-pro # or whatever you have access to +// export ARK_MODEL_ID=doubao-seed-2-1-pro-260628 # or whatever you have access to // go run examples/agents/main.go package main diff --git a/examples/listinputitems/main.go b/examples/listinputitems/main.go index 1e140c9..ef3475b 100644 --- a/examples/listinputitems/main.go +++ b/examples/listinputitems/main.go @@ -25,7 +25,7 @@ func main() { ctx := context.Background() resp, err := client.CreateResponses(ctx, &responses.ResponsesRequest{ - Model: "doubao-seed-2-1-pro", + Model: "doubao-seed-2-1-pro-260628", Input: responses.NewStringResponsesInput("hello"), }) if err != nil { diff --git a/examples/responses/basic/main.go b/examples/responses/basic/main.go index bad4ea6..16e7335 100644 --- a/examples/responses/basic/main.go +++ b/examples/responses/basic/main.go @@ -41,7 +41,7 @@ func main() { } req := &responses.ResponsesRequest{ - Model: "doubao-seed-2-1-pro", + Model: "doubao-seed-2-1-pro-260628", Input: responses.NewInputItemArrayResponsesInput([]responses.InputItem{inputItem}), } diff --git a/examples/responses/doubao_app/main.go b/examples/responses/doubao_app/main.go index 22be256..247db4f 100644 --- a/examples/responses/doubao_app/main.go +++ b/examples/responses/doubao_app/main.go @@ -24,7 +24,7 @@ import ( ) const ( - modelName = "doubao-seed-2-1-pro" + modelName = "doubao-seed-2-1-pro-260628" doubaoHeader = "ark-beta-doubao-app" ) diff --git a/examples/responses/function_call/main.go b/examples/responses/function_call/main.go index 5c45cb5..e9bd689 100644 --- a/examples/responses/function_call/main.go +++ b/examples/responses/function_call/main.go @@ -24,7 +24,7 @@ import ( "github.com/volcengine/ark-runtime-go/arkruntime/model/responses" ) -const modelName = "doubao-seed-2-1-pro" +const modelName = "doubao-seed-2-1-pro-260628" func main() { client := arkruntime.NewClientWithApiKey(os.Getenv("ARK_API_KEY")) diff --git a/examples/responses/mcp/main.go b/examples/responses/mcp/main.go index 5cef739..81dd34f 100644 --- a/examples/responses/mcp/main.go +++ b/examples/responses/mcp/main.go @@ -25,7 +25,7 @@ import ( ) const ( - modelName = "doubao-seed-2-1-pro" + modelName = "doubao-seed-2-1-pro-260628" mcpServerURL = "https://mcp.deepwiki.com/mcp" mcpLabel = "deepwiki" mcpBetaHeader = "ark-beta-mcp" diff --git a/examples/responses/web_search/main.go b/examples/responses/web_search/main.go index 2c55c0a..9278f6f 100644 --- a/examples/responses/web_search/main.go +++ b/examples/responses/web_search/main.go @@ -20,7 +20,7 @@ import ( "github.com/volcengine/ark-runtime-go/arkruntime/model/responses" ) -const modelName = "doubao-seed-2-1-pro" +const modelName = "doubao-seed-2-1-pro-260628" func main() { stream() diff --git a/examples/sessions_loop/main.go b/examples/sessions_loop/main.go index aad5a74..dc1613c 100644 --- a/examples/sessions_loop/main.go +++ b/examples/sessions_loop/main.go @@ -14,7 +14,7 @@ // GET /api/v3/sessions/:id/events (stream) (StreamSessionEvents — SSE) // // export ARK_API_KEY=... -// export ARK_MODEL_ID=doubao-seed-2-1-pro +// export ARK_MODEL_ID=doubao-seed-2-1-pro-260628 // go run examples/sessions_loop/main.go package main