mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-19 22:42:35 +01:00
CAPI header tweaks (#4090)
This commit is contained in:
@@ -368,7 +368,8 @@ function networkRequest(
|
||||
'conversation-subagent' :
|
||||
options.requestKindOptions?.kind === 'background' ?
|
||||
'conversation-background' :
|
||||
intent === 'conversation-agent' ? intent : undefined;
|
||||
intent === 'conversation-agent' ? intent :
|
||||
intent;
|
||||
|
||||
const headers: ReqHeaders = {
|
||||
Authorization: `Bearer ${secretKey}`,
|
||||
@@ -378,10 +379,8 @@ function networkRequest(
|
||||
...additionalHeaders,
|
||||
...(endpoint.getExtraHeaders ? endpoint.getExtraHeaders(location) : {}),
|
||||
};
|
||||
if (agentInteractionType) {
|
||||
headers['X-Interaction-Type'] = agentInteractionType;
|
||||
headers['X-Agent-Task-Id'] = requestId;
|
||||
}
|
||||
headers['X-Interaction-Type'] = agentInteractionType;
|
||||
headers['X-Agent-Task-Id'] = requestId;
|
||||
|
||||
if (endpoint.interceptBody) {
|
||||
endpoint.interceptBody(body);
|
||||
|
||||
Reference in New Issue
Block a user