kopia lustrzana https://github.com/learn-awesome/learndb
updated prompt
rodzic
55e084f11b
commit
c7399df455
|
@ -57,8 +57,13 @@ async function performGPTAnalysis(simplifiedContent, apiKey) {
|
|||
// const openai = new OpenAIApi(configuration);
|
||||
|
||||
// // Using the specified prompt
|
||||
// const prompt = `Analyze the following text and provide the media type and key topics: ${simplifiedContent}`;
|
||||
|
||||
// const prompt = `
|
||||
// Analyze the following text for content categorization:
|
||||
// Text: "${simplifiedContent}"
|
||||
// Please provide:
|
||||
// 1. The most likely media type (e.g., article, book, audio, video, chat, research_paper, wiki, etc.)
|
||||
// 2. Key topics covered in the text (list up to 5 main topics).
|
||||
// `;
|
||||
// const completion = await openai.createCompletion({
|
||||
// model: "mistralai/mistral-7b-instruct",
|
||||
// prompt: prompt,
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
"svelte-bricks": "^0.2.1",
|
||||
"svelte-preprocess": "^5.0.4",
|
||||
"tailwindcss": "^3.3.3",
|
||||
"vite": "^4.4.9"
|
||||
"vite": "^4.5.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@alloc/quick-lru": {
|
||||
|
@ -7536,9 +7536,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/vite": {
|
||||
"version": "4.4.9",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz",
|
||||
"integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==",
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-4.5.0.tgz",
|
||||
"integrity": "sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"esbuild": "^0.18.10",
|
||||
|
@ -13347,9 +13347,9 @@
|
|||
"peer": true
|
||||
},
|
||||
"vite": {
|
||||
"version": "4.4.9",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz",
|
||||
"integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==",
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-4.5.0.tgz",
|
||||
"integrity": "sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"esbuild": "^0.18.10",
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
"svelte-bricks": "^0.2.1",
|
||||
"svelte-preprocess": "^5.0.4",
|
||||
"tailwindcss": "^3.3.3",
|
||||
"vite": "^4.4.9"
|
||||
"vite": "^4.5.0"
|
||||
},
|
||||
"overrides": {
|
||||
"@rgossiaux/svelte-headlessui": {
|
||||
|
|
Ładowanie…
Reference in New Issue