Skip to content

Commit d566042

Browse files
cuipengfeiCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c335190 commit d566042

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/services/copilot/create-chat-completions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ export const createChatCompletions = async (
3131
consola.debug(
3232
`Compatible mode headers: X-Initiator=${sessionHeaders["X-Initiator"]}`,
3333
)
34-
}
34+
// Optional: Add debug logging for all modes
35+
consola.debug(
36+
`Headers (${state.headerMode} mode): X-Initiator=${sessionHeaders["X-Initiator"]}`,
37+
)
3538

3639
const response = await fetch(`${copilotBaseUrl(state)}/chat/completions`, {
3740
method: "POST",

0 commit comments

Comments
 (0)