gpt-engineer-app[bot] nextgenframes commited on
Commit ·
9248162
1
Parent(s): cbd67ec
Changes
Browse filesCo-authored-by: nextgenframes <281320089+nextgenframes@users.noreply.github.com>
src/server/branch-debug.functions.ts
CHANGED
|
@@ -396,8 +396,7 @@ export async function analyzeSnippet(
|
|
| 396 |
failureDescription: string,
|
| 397 |
language?: string,
|
| 398 |
): Promise<DebugResult> {
|
| 399 |
-
|
| 400 |
-
if (!apiKey) throw new Error("LOVABLE_API_KEY not configured");
|
| 401 |
|
| 402 |
const { sanitized, reverseMap, stats, audit } = sanitize(snippet);
|
| 403 |
const numbered = sanitized.split("\n").map((l, i) => `${String(i + 1).padStart(4, " ")} | ${l}`).join("\n");
|
|
|
|
| 396 |
failureDescription: string,
|
| 397 |
language?: string,
|
| 398 |
): Promise<DebugResult> {
|
| 399 |
+
getAIConfig();
|
|
|
|
| 400 |
|
| 401 |
const { sanitized, reverseMap, stats, audit } = sanitize(snippet);
|
| 402 |
const numbered = sanitized.split("\n").map((l, i) => `${String(i + 1).padStart(4, " ")} | ${l}`).join("\n");
|