mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 14:56:36 +00:00
feat: fix bugs and finalize ai-optimized-editor
This commit is contained in:
parent
88be549430
commit
9d149e4254
@ -64,6 +64,7 @@ Format:
|
||||
"issuesFixed": ["list of issues fixed"]
|
||||
}
|
||||
`;
|
||||
console.log("Prompt:", prompt);
|
||||
|
||||
// 发送请求给OpenAI
|
||||
const messages: CoreMessage[] = [{ role: "user", content: prompt }];
|
||||
@ -97,5 +98,6 @@ Format:
|
||||
throw new Error("Response validation failed");
|
||||
}
|
||||
|
||||
console.log("LLM response:", llmResponseJson);
|
||||
return validationResult.data;
|
||||
};
|
@ -1,3 +1,5 @@
|
||||
"use client";
|
||||
|
||||
import { AIProblemEditor } from "@/components/ai-optimized-editor";
|
||||
import { useParams } from "next/navigation";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user