Skip to content

Commit 54cbab2

Browse files
revert: undo unrelated Go scenario changes from codegen
These Content→Content.String changes came from session events codegen regeneration and are unrelated to the model capabilities PR. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cf948da commit 54cbab2

File tree

31 files changed

+33
-33
lines changed

31 files changed

+33
-33
lines changed

test/scenarios/auth/byok-anthropic/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ func main() {
5959
}
6060

6161
if response != nil && response.Data.Content != nil {
62-
fmt.Println(*response.Data.Content.String)
62+
fmt.Println(*response.Data.Content)
6363
}
6464
}

test/scenarios/auth/byok-azure/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ func main() {
6363
}
6464

6565
if response != nil && response.Data.Content != nil {
66-
fmt.Println(*response.Data.Content.String)
66+
fmt.Println(*response.Data.Content)
6767
}
6868
}

test/scenarios/auth/byok-ollama/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ func main() {
5555
}
5656

5757
if response != nil && response.Data.Content != nil {
58-
fmt.Println(*response.Data.Content.String)
58+
fmt.Println(*response.Data.Content)
5959
}
6060
}

test/scenarios/auth/byok-openai/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ func main() {
5454
}
5555

5656
if response != nil && response.Data.Content != nil {
57-
fmt.Println(*response.Data.Content.String)
57+
fmt.Println(*response.Data.Content)
5858
}
5959
}

test/scenarios/auth/gh-app/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,6 @@ func main() {
186186
log.Fatal(err)
187187
}
188188
if response != nil && response.Data.Content != nil {
189-
fmt.Println(*response.Data.Content.String)
189+
fmt.Println(*response.Data.Content)
190190
}
191191
}

test/scenarios/bundling/app-backend-to-server/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func chatHandler(w http.ResponseWriter, r *http.Request) {
8181
}
8282

8383
if response != nil && response.Data.Content != nil {
84-
writeJSON(w, http.StatusOK, chatResponse{Response: *response.Data.Content.String})
84+
writeJSON(w, http.StatusOK, chatResponse{Response: *response.Data.Content})
8585
} else {
8686
writeJSON(w, http.StatusBadGateway, chatResponse{Error: "No response content from Copilot CLI"})
8787
}

test/scenarios/bundling/app-direct-server/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ func main() {
4141
}
4242

4343
if response != nil && response.Data.Content != nil {
44-
fmt.Println(*response.Data.Content.String)
44+
fmt.Println(*response.Data.Content)
4545
}
4646
}

test/scenarios/bundling/container-proxy/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ func main() {
4141
}
4242

4343
if response != nil && response.Data.Content != nil {
44-
fmt.Println(*response.Data.Content.String)
44+
fmt.Println(*response.Data.Content)
4545
}
4646
}

test/scenarios/bundling/fully-bundled/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ func main() {
3737
}
3838

3939
if response != nil && response.Data.Content != nil {
40-
fmt.Println(*response.Data.Content.String)
40+
fmt.Println(*response.Data.Content)
4141
}
4242
}

test/scenarios/callbacks/hooks/go/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func main() {
7777
}
7878

7979
if response != nil && response.Data.Content != nil {
80-
fmt.Println(*response.Data.Content.String)
80+
fmt.Println(*response.Data.Content)
8181
}
8282

8383
fmt.Println("\n--- Hook execution log ---")

0 commit comments

Comments
 (0)