- ChatbotV2.vue : Vue island, thread chat (input + messages bot/user), persistance sessionStorage, bandeau beta '120 fiches AEP, RAG-PE bientot', gestion erreurs 429/502/504 ; pas de streaming ni markdown V1 - /api/chatbot.ts : endpoint Astro server proxy POST vers CHATBOT_UPSTREAM (default https://aep.trans-former.fr/api/chatbot), timeout 25s, body { question, history } -> upstream classique chatbot AEP Mistral Small - astro.config.mjs : output 'server' + adapter @astrojs/node standalone (Astro 6 a supprime mode hybrid ; on opt-in prerender sur les pages) - Toutes les pages publiques (index, manifeste, manifeste/commander, a-propos, mentions-legales) ont 'export const prerender = true' - ColCentre.astro : remplace ChatbotPlaceholder par ChatbotV2 dans le tab - .env.example : ajoute CHATBOT_UPSTREAM (V1.5 = switch LightRAG-PE 1 ligne) Decision V1 : endpoint AEP /api/chatbot (classique, repond bien) au lieu de /api/chatbot-v2 qui retourne v2_ready=false ('base vectorielle en cours'). Bandeau beta reste valide ; switch v2 quand ready cote AEP via env var. Note PC8 deploy : Coolify doit booter avec 'node ./dist/server/entry.mjs' (SSR Node standalone) au lieu de servir dist/client/ static. Test end-to-end OK : SSR boot port 4399 + curl POST /api/chatbot -> reponse_texte 800+ chars de l'AEP backend.
31 lines
728 B
JSON
31 lines
728 B
JSON
{
|
|
"name": "astro-site-cerveau",
|
|
"type": "module",
|
|
"version": "0.0.1",
|
|
"engines": {
|
|
"node": ">=22.12.0"
|
|
},
|
|
"scripts": {
|
|
"predev": "node scripts/build-carte-o.js",
|
|
"dev": "astro dev",
|
|
"prebuild": "node scripts/build-carte-o.js",
|
|
"build": "astro build",
|
|
"preview": "astro preview",
|
|
"astro": "astro",
|
|
"build:carte-o": "node scripts/build-carte-o.js"
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/node": "^10.1.0",
|
|
"@astrojs/vue": "^6.0.1",
|
|
"@tailwindcss/vite": "^4.2.4",
|
|
"@types/d3": "^7.4.3",
|
|
"astro": "^6.3.1",
|
|
"d3": "^7.9.0",
|
|
"embla-carousel-vue": "^8.6.0",
|
|
"globby": "^16.2.0",
|
|
"gray-matter": "^4.0.3",
|
|
"tailwindcss": "^4.2.4",
|
|
"vue": "^3.5.34"
|
|
}
|
|
}
|