Skip to content

Commit 70783a7

Browse files
committed
refactor: remove copilot scope payload
1 parent a74c676 commit 70783a7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

spx-gui/src/apis/copilot.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ describe('generateSSEMessage', () => {
159159
expect(mockedPostJSONSSE).toHaveBeenCalledWith(
160160
'/copilot/sse/message',
161161
{
162-
scope: 'standard',
163162
messages: [],
164163
tools
165164
},

spx-gui/src/apis/copilot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export async function* generateSSEMessage(
101101
try {
102102
const stream = client.postJSONSSE(
103103
'/copilot/sse/message',
104-
{ scope: 'standard', messages, tools: options?.tools },
104+
{ messages, tools: options?.tools },
105105
{
106106
timeout: timeout,
107107
signal: options?.signal

0 commit comments

Comments
 (0)