fix(build): remove next-pwa and fix type errors
- Remove unused next-pwa dependency to eliminate workbox/rimraf warnings - Fix DraftRecord type error by removing invalid updatedAt property - Fix LLMService.getTeacherResponseStream type by adding optional onIntent callback
This commit is contained in:
@@ -42,7 +42,6 @@ export function DraftSheet() {
|
||||
// We should probably save the raw JSON or a formatted textual representation.
|
||||
// Let's save formatted text.
|
||||
createdAt: Date.now(),
|
||||
updatedAt: Date.now(),
|
||||
status: 'completed',
|
||||
completedAt: Date.now(),
|
||||
tags: []
|
||||
|
||||
@@ -173,6 +173,7 @@ export class LLMService {
|
||||
content: string,
|
||||
history: { role: string; content: string }[],
|
||||
callbacks: {
|
||||
onIntent?: (intent: import('@/lib/llm/intent-detector').Intent) => void;
|
||||
onToken: (token: string) => void;
|
||||
onComplete: (fullText: string) => void;
|
||||
onError: (error: any) => void;
|
||||
|
||||
Reference in New Issue
Block a user