Commit 0909f2b
committed
fix: llm-task tool schema compatibility with llama.cpp + doctor SecretRef crash
Two fixes:
1. llm-task plugin: Type.Unknown() produces JSON Schema without a 'type'
field, which llama.cpp rejects during schema-to-grammar conversion.
Replace with Type.Unsafe<unknown>({type: 'object', ...}) to emit
a concrete type. Fixes #35443.
2. openclaw doctor: resolved?.remote?.apiKey?.trim() crashes when apiKey
is a SecretRef object (not a string). Guard with typeof check.
Fixes #35444.1 parent 4bd3469 commit 0909f2b
File tree
2 files changed
+14
-3
lines changed- extensions/llm-task/src
- src/commands
2 files changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
78 | 83 | | |
79 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
0 commit comments