Commit aff2159
Address all review comments: validate array content shape, validate systemPrompt type, forward all AIRequestOptions to Vercel adapter
- validateMessage: structural validation for array content elements (non-null objects with string type, text property for type:text)
- systemPrompt: runtime string validation, returns 400 for non-string values
- VercelLLMAdapter: buildVercelOptions helper forwards stop, tools, toolChoice to chat/complete/streamChat
Agent-Logs-Url: https://github.com/objectstack-ai/spec/sessions/ac262d54-6f0d-47a1-967b-c1f4b7636378
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 50ec638 commit aff2159
2 files changed
Lines changed: 63 additions & 12 deletions
Lines changed: 38 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
13 | 47 | | |
14 | 48 | | |
15 | 49 | | |
| |||
39 | 73 | | |
40 | 74 | | |
41 | 75 | | |
42 | | - | |
43 | | - | |
| 76 | + | |
44 | 77 | | |
45 | 78 | | |
46 | 79 | | |
| |||
59 | 92 | | |
60 | 93 | | |
61 | 94 | | |
62 | | - | |
63 | | - | |
| 95 | + | |
64 | 96 | | |
65 | 97 | | |
66 | 98 | | |
| |||
81 | 113 | | |
82 | 114 | | |
83 | 115 | | |
84 | | - | |
85 | | - | |
| 116 | + | |
86 | 117 | | |
87 | 118 | | |
88 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
99 | 115 | | |
100 | 116 | | |
101 | 117 | | |
| |||
167 | 183 | | |
168 | 184 | | |
169 | 185 | | |
170 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
171 | 191 | | |
172 | 192 | | |
173 | 193 | | |
| |||
0 commit comments