Commit 04f1f80
fix: docs corrections and dead code cleanup (#172)
1. README: Node.js requirement 22.0.0 → 20.0.0 (matches package.json
engines field and CI matrix which tests both 20.x and 22.x)
2. getRequestHeaders JSDoc: fix wrong method call in @example
- Was calling getServiceMetadata twice (second should be getRequestHeaders)
- Remove non-existent serviceName parameter
- Fix message role from "system" to "user"
- Fix headers placement in OpenAI SDK call
3. response.ts: remove duplicate chatID null check (dead code)
- Line 38 already returns null if !chatID
- Second check at line 54 was unreachable
- Replace console.warn with existing logger.warn (3 occurrences)
4. request.ts: remove commented-out import
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 87a1686 commit 04f1f80
File tree
4 files changed
+9
-17
lines changed- src.ts/sdk/inference/broker
4 files changed
+9
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | | - | |
310 | 309 | | |
311 | 310 | | |
312 | | - | |
| 311 | + | |
313 | 312 | | |
314 | | - | |
315 | 313 | | |
316 | 314 | | |
317 | 315 | | |
| |||
322 | 320 | | |
323 | 321 | | |
324 | 322 | | |
325 | | - | |
| 323 | + | |
326 | 324 | | |
327 | 325 | | |
328 | | - | |
329 | | - | |
330 | | - | |
| 326 | + | |
331 | 327 | | |
332 | 328 | | |
333 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 54 | | |
59 | | - | |
| 55 | + | |
60 | 56 | | |
61 | 57 | | |
62 | 58 | | |
| |||
0 commit comments