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:
@@ -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 },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user