Skip to content

Commit 7c73765

Browse files
authored
Merge pull request #46 from caozhiyuan/feature/responses-api
Remove incompatible with copilot responses `service_tier` field (#45)
2 parents 795882b + f7835a4 commit 7c73765

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/copilot/create-responses.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export interface ResponsesPayload {
2222
store?: boolean | null
2323
reasoning?: Reasoning | null
2424
include?: Array<ResponseIncludable>
25+
service_tier?: string | null // NOTE: Unsupported by GitHub Copilot
2526
[key: string]: unknown
2627
}
2728

@@ -336,6 +337,9 @@ export const createResponses = async (
336337
"X-Initiator": initiator,
337338
}
338339

340+
// service_tier is not supported by github copilot
341+
payload.service_tier = null
342+
339343
const response = await fetch(`${copilotBaseUrl(state)}/responses`, {
340344
method: "POST",
341345
headers,

0 commit comments

Comments
 (0)