feat(llm): send x-kilocode-mode header for gateway

This commit is contained in:
Igor Šćekić
2026-02-03 00:29:35 +01:00
parent b928c22921
commit b8daf18f39
+3
View File
@@ -229,6 +229,9 @@ export namespace LLM {
: input.model.providerID !== "anthropic"
? DEFAULT_HEADERS // kilocode_change
: undefined),
...(input.model.api.npm === "@kilocode/kilo-gateway" && input.agent.name
? { "x-kilocode-mode": input.agent.name.toLowerCase() }
: {}),
...input.model.headers,
...headers,
},