fix(chatbot): Réseaux AEP → /api/chatbot-reseaux + prop endpoint ChatbotSheet

- server/api/chatbot-reseaux.post.ts : keyword search sur reseaux-bifurcation.json
  (120 structures, même pattern que chatbot-taff)
- ChatbotSheet.vue : prop endpoint? (défaut /api/chatbot) + renderMd déjà actif
- agences.vue : endpoint='/api/chatbot-reseaux'

Markdown s'active au prochain restart du bat (cache .nuxt à nettoyer).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jules Neny
2026-05-07 01:43:02 +02:00
parent ec9178be08
commit f9a0875727
3 changed files with 128 additions and 1 deletions

View File

@@ -180,6 +180,7 @@ interface ChatMessage {
const props = defineProps<{
modelValue: boolean
endpoint?: string // défaut: /api/chatbot (Carte 1 NocoDB)
}>()
const emit = defineEmits<{
@@ -227,7 +228,7 @@ async function sendMessage() {
const res = await $fetch<{
reponse_texte: string
fiches_recommandees: { id: number | string; nom: string; explication: string }[]
}>('/api/chatbot', {
}>(props.endpoint ?? '/api/chatbot', {
method: 'POST',
body: { question },
})