pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/github/copilot-sdk-java/commit/f219ada9279a193c07e8abfaf809c8fe2e7ded4a

="https://github.githubassets.com/assets/global-d18f184ea1a06a2c.css" /> Fix SessionModelSwitchToParams constructor calls after new reasoningS… · github/copilot-sdk-java@f219ada · GitHub
Skip to content
This repository was archived by the owner on Jun 17, 2026. It is now read-only.

Commit f219ada

Browse files
Fix SessionModelSwitchToParams constructor calls after new reasoningSummary field
The generated SessionModelSwitchToParams record gained a new reasoningSummary field, changing the constructor from 4 to 5 parameters. Updated both call sites in CopilotSession to pass null for the new reasoningSummary parameter. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 86f4695 commit f219ada

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/github/copilot/sdk/CopilotSession.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,7 @@ public CompletableFuture<Void> abort() {
16571657
*/
16581658
public CompletableFuture<Void> setModel(String model, String reasoningEffort) {
16591659
ensureNotTerminated();
1660-
return getRpc().model.switchTo(new SessionModelSwitchToParams(sessionId, model, reasoningEffort, null))
1660+
return getRpc().model.switchTo(new SessionModelSwitchToParams(sessionId, model, reasoningEffort, null, null))
16611661
.thenApply(r -> null);
16621662
}
16631663

@@ -1706,7 +1706,7 @@ public CompletableFuture<Void> setModel(String model, String reasoningEffort,
17061706
generatedCapabilities = new ModelCapabilitiesOverride(supports, limits);
17071707
}
17081708
return getRpc().model
1709-
.switchTo(new SessionModelSwitchToParams(sessionId, model, reasoningEffort, generatedCapabilities))
1709+
.switchTo(new SessionModelSwitchToParams(sessionId, model, reasoningEffort, null, generatedCapabilities))
17101710
.thenApply(r -> null);
17111711
}
17121712

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy