From ecd714b2133f678416705a83a6ef6ea0daa173fa Mon Sep 17 00:00:00 2001 From: Luke Parke <5702154+LukasParke@users.noreply.github.com> Date: Tue, 7 Jul 2026 14:46:40 -0500 Subject: [PATCH] fix(example): remove res.Data access in Example_listModels after pagination regen The pagination regeneration removed .Data from the models list response. Update Example_listModels to only check res != nil instead of accessing the now-missing res.Data field, fixing the sdk-build-check (go) CI failure. --- example_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/example_test.go b/example_test.go index 6bea64c2..97df21e7 100644 --- a/example_test.go +++ b/example_test.go @@ -92,9 +92,8 @@ func Example_listModels() { log.Fatal(err) } - if res != nil && len(res.Data) > 0 { - fmt.Printf("Found %d models\n", len(res.Data)) - fmt.Printf("First model: %s\n", res.Data[0].Name) + if res != nil { + fmt.Println("Successfully fetched models") } }