Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import Express from 'express'
import ejs from 'ejs' // eslint-disable-line no-unused-vars

import { loadRoutes } from './routes/index.js'
import * as AppAPI from '@repo/api/routes/index.js'

import limiter from './middleware/ratelimit.js'
import cors from './middleware/cors.js'
Expand Down Expand Up @@ -55,6 +54,7 @@ app.use(router)

// Load built-in API routes if enabled
if (APP_USE_BUILTIN_API) {
const AppAPI = await import('@repo/api/routes/index.js')
const apiRouter = await AppAPI.loadRoutes()
app.use(apiRouter)
consola.debug('Built-in API routes registered')
Expand Down
1 change: 0 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"license": "Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)",
"type": "module",
"dependencies": {
"@repo/api": "^1.0.0",
"@repo/handlers": "^1.0.0",
"@repo/utils": "^1.0.0",
"consola": "^3.4.2",
Expand Down
6 changes: 5 additions & 1 deletion packages/handlers/handle-autofill-ai.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ openai.context = [
},
{
role: 'system',
content: fs.readFileSync(path.join(__dirname, '../../context/10-contoh-tema-dan-subtema.md'), 'utf-8')
content: 'Berikut adalah DAFTAR REFERENSI tema dan subtema yang tersedia. Gunakan ini HANYA sebagai acuan untuk memilih satu tema dan satu subtema yang paling relevan dengan konteks yang diberikan. JANGAN menampilkan seluruh daftar. Output hanya tema dan subtema terpilih saja.\n\n' + fs.readFileSync(path.join(__dirname, '../../context/10-contoh-tema-dan-subtema.md'), 'utf-8')
},
{
role: 'system',
content: 'Untuk field yang berkaitan dengan tema dan subtema: pilih SATU tema dan SATU subtema yang paling sesuai dengan konteks yang diberikan pengguna, lalu tuliskan dalam format:\nTema : [nama tema]\nSub Tema : [nama subtema]\n\nContoh output BENAR: "Tema : Diriku\nSub Tema : Identitasku"\nContoh output SALAH: menampilkan semua tema dan subtema sekaligus dalam satu jawaban.'
}
]

Expand Down
Loading