-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcheck_errors.txt
More file actions
254 lines (204 loc) · 8.48 KB
/
Copy pathcheck_errors.txt
File metadata and controls
254 lines (204 loc) · 8.48 KB
1
2
3
4
5
6
7
8
9
10
11
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
Loading svelte-check in workspace: /home/khush/code_hub/ContextVM/contextvm-site
Getting Svelte diagnostics...
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:215:4
Error: Argument expression expected.
const stream = await this.client.chat.completions.create(
const controller = new AbortController();
const handleAbort = () => controller.abort();
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:238:13
Error: ',' expected.
model,
messages: toOpenAiMessages(messages),
stream: true,
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:239:11
Error: ',' expected.
messages: toOpenAiMessages(messages),
stream: true,
...(tools?.length ? { tools } : {})
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:241:4
Error: ',' expected.
...(tools?.length ? { tools } : {})
},
{
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:241:5
Error: Unexpected token. A constructor, method, accessor, or property was expected.
...(tools?.length ? { tools } : {})
},
{
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:242:4
Error: Unexpected token. A constructor, method, accessor, or property was expected.
},
{
signal
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:245:3
Error: Declaration or statement expected.
signal: controller.signal
);
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:311:5
Error: Declaration or statement expected.
toolCallAccumulator.set(toolCall.index, existing);
}
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:312:4
Error: Declaration or statement expected.
}
}
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:313:3
Error: Declaration or statement expected.
}
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:328:2
Error: Declaration or statement expected.
return { content, model, finishReason, toolCalls };
}
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:329:1
Error: Declaration or statement expected.
}
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:213:5
Error: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value.
tools: ChatCompletionTool[] | undefined
): Promise<SendMessageResult> {
const stream = await this.client.chat.completions.create(
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:214:9
Error: Cannot redeclare block-scoped variable 'stream'.
): Promise<SendMessageResult> {
const stream = await this.client.chat.completions.create(
const controller = new AbortController();
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:236:10
Error: Cannot redeclare block-scoped variable 'stream'.
const stream = await this.client.chat.completions.create(
model,
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:240:5
Error: A spread argument must either have a tuple type or be passed to a rest parameter.
stream: true,
...(tools?.length ? { tools } : {})
},
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:240:8
Error: Type '{ tools: ChatCompletionTool[]; } | {}' must have a '[Symbol.iterator]()' method that returns an iterator.
stream: true,
...(tools?.length ? { tools } : {})
},
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:243:5
Error: Cannot find name 'signal'.
{
signal
signal: controller.signal
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:244:14
Error: Cannot find name 'controller'.
signal
signal: controller.signal
);
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:253:5
Error: Cannot find name 'resetIdleTimeout'.
try {
resetIdleTimeout();
for await (const chunk of stream) {
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:254:31
Error: Cannot find name 'stream'.
resetIdleTimeout();
for await (const chunk of stream) {
resetIdleTimeout();
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:255:6
Error: Cannot find name 'resetIdleTimeout'.
for await (const chunk of stream) {
resetIdleTimeout();
const choice = chunk.choices[0];
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:268:7
Error: Cannot find name 'onDelta'. Did you mean 'delta'?
content += delta.content;
onDelta?.(delta.content);
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:294:9
Error: Cannot find name 'idleTimeoutId'.
} finally {
if (idleTimeoutId) {
clearTimeout(idleTimeoutId);
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:295:19
Error: Cannot find name 'idleTimeoutId'.
if (idleTimeoutId) {
clearTimeout(idleTimeoutId);
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:297:9
Error: Cannot find name 'signal'.
}
if (signal) {
signal.removeEventListener('abort', handleAbort);
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:298:6
Error: Cannot find name 'signal'.
if (signal) {
signal.removeEventListener('abort', handleAbort);
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:298:42
Error: Cannot find name 'handleAbort'.
if (signal) {
signal.removeEventListener('abort', handleAbort);
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:302:8
Error: Cannot find name 'timedOut'.
if (timedOut) {
throw new Error('LLM response timed out');
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:306:10
Error: Cannot find name 'toolCall'.
}
if (toolCall.function?.arguments) {
existing.args += toolCall.function.arguments;
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:307:7
Error: Cannot find name 'existing'.
if (toolCall.function?.arguments) {
existing.args += toolCall.function.arguments;
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:307:24
Error: Cannot find name 'toolCall'.
if (toolCall.function?.arguments) {
existing.args += toolCall.function.arguments;
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:310:6
Error: Cannot find name 'toolCallAccumulator'.
toolCallAccumulator.set(toolCall.index, existing);
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:310:30
Error: Cannot find name 'toolCall'.
toolCallAccumulator.set(toolCall.index, existing);
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:310:46
Error: Cannot find name 'existing'.
toolCallAccumulator.set(toolCall.index, existing);
}
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:316:4
Error: Cannot find name 'toolCallAccumulator'.
const toolCalls =
toolCallAccumulator.size > 0
? [...toolCallAccumulator.values()]
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:317:11
Error: Cannot find name 'toolCallAccumulator'.
toolCallAccumulator.size > 0
? [...toolCallAccumulator.values()]
.filter((toolCall) => toolCall.id && toolCall.name)
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:326:3
Error: Object is possibly 'undefined'.
this.lastUsedModel = model;
return { content, model, finishReason, toolCalls };
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/llm.ts:326:24
Error: Cannot find name 'model'.
this.lastUsedModel = model;
return { content, model, finishReason, toolCalls };
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/conversation-store.svelte.ts:168:4
Error: Cannot find name 'sort'.
.map((conversation) => normalizeConversation(conversation as Conversation))
sort(
(a, b) => toTimestamp(b.updatedAt) - toTimestamp(a.updatedAt)
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/conversation-store.svelte.ts:169:5
Error: Parameter 'a' implicitly has an 'any' type.
sort(
(a, b) => toTimestamp(b.updatedAt) - toTimestamp(a.updatedAt)
);
/home/khush/code_hub/ContextVM/contextvm-site/src/lib/services/conversation-store.svelte.ts:169:8
Error: Parameter 'b' implicitly has an 'any' type.
sort(
(a, b) => toTimestamp(b.updatedAt) - toTimestamp(a.updatedAt)
);
====================================
svelte-check found 42 errors and 0 warnings in 2 files