400
401
private async _sendNonStreamingMessage(
403
>
headers: Record<string, string>,
404
>
res: http.ServerResponse,
405
>
entry: IProxyInFlight,
406
>
runtime: IClaudeProxyRuntime,
407
>
originalSdkModelId: string,
408
>
sessionId: string | undefined,
409
>
): Promise<void> {
410
>
const options: ICopilotApiServiceRequestOptions = { headers, signal: entry.ac.signal, suppressIntegrationId: true };
411
>
let message: Anthropic.Message;
412
>
try {
413
>
message = await this._copilotApiService.messages(runtime.state.githubToken, body, options);
414
>
} catch (err) {
415
if (entry.ac.signal.aborted) {
416
if (!entry.clientGone && !res.writableEnded) {