Skip to content

Commit

Permalink
Feat: update resource type in chatWithLLMByDocs function
Browse files Browse the repository at this point in the history
  • Loading branch information
TakalaWang committed Dec 23, 2024
1 parent 72e1b96 commit b531aa6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/server/llm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { env } from '$env/dynamic/private';
import type { Resource } from '$lib/schema/resource';
import type { LLMChatMessage, StudentSpeak } from '$lib/utils/types';
import fs from 'fs/promises';
import { OpenAI } from 'openai';
Expand Down Expand Up @@ -134,10 +135,7 @@ export async function chatWithLLMByDocs(
history: LLMChatMessage[],
task: string,
subtasks: string[],
resources: {
name: string;
content: string;
}[],
resources: Resource[],
temperature = 0.7
): Promise<{ success: boolean; message: string; subtask_completed: boolean[]; error?: string }> {
console.log('Starting chatWithLLMByDocs:', {
Expand Down

0 comments on commit b531aa6

Please sign in to comment.