Commit 69e0302
committed
refactor: remove adaptive rate limiting feature
Remove adaptive rate limiting since GitHub Copilot API does not provide
rate limit headers. The API only returns x-quota-snapshot-* headers which
track quota usage, not rate limits, and overage is permitted freely.
Removed:
- src/lib/rate-limit-parser.ts
- tests/rate-limit-parser.test.ts
- onHeaders callback from createChatCompletions
- Rate limit header parsing logic from handlers
The opt-in request queue remains functional for users who want to set
a fixed rate limit via --rate-limit flag.
Signed-off-by: leocavalcante <[email protected]>1 parent 19deaf4 commit 69e0302
File tree
5 files changed
+2
-371
lines changed- src
- lib
- routes
- chat-completions
- messages
- services/copilot
- tests
5 files changed
+2
-371
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 8 | | |
14 | 9 | | |
15 | 10 | | |
| |||
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 49 | + | |
64 | 50 | | |
65 | 51 | | |
66 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 8 | | |
14 | 9 | | |
15 | 10 | | |
| |||
45 | 40 | | |
46 | 41 | | |
47 | 42 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 43 | + | |
58 | 44 | | |
59 | 45 | | |
60 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 42 | | |
49 | 43 | | |
50 | 44 | | |
| |||
0 commit comments