Skip to main content

chatSendUrl

chatSendUrl(appId?) returns the AI Chat Companion's non-streaming fallback endpoint (POST) — {chatApiBase}/chat/send. Used when SSE streaming is unavailable.

import { chatSendUrl } from '@conduction/nextcloud-vue'

chatSendUrl() // '/index.php/apps/openregister/api/chat/send'
chatSendUrl('hermiq') // '/index.php/apps/hermiq/api/chat/send'

Derived from chatApiBase; appId falls back to DEFAULT_CHAT_APP_ID.

Source: src/composables/aiChatConfig.js (ADR-034).