Fix X-Initiator header logic for GitHub Copilot

Check last message role instead of any message in history.
This matches the original correct implementation from PR #200.

fixes #209
This commit is contained in:
Mario Zechner 2025-12-19 05:08:28 +01:00
parent 13b8af1f36
commit 575dcb2676
5 changed files with 18 additions and 14 deletions

View file

@ -3225,7 +3225,7 @@ export const MODELS = {
cost: {
input: 0.24,
output: 0.38,
cacheRead: 0.19,
cacheRead: 0.11,
cacheWrite: 0,
},
contextWindow: 163840,