Skip to main content

chatStreamUrl

chatStreamUrl(appId?) returns the AI Chat Companion's SSE streaming endpoint (POST) — {chatApiBase}/chat/stream.

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

chatStreamUrl() // '/index.php/apps/openregister/api/chat/stream'
chatStreamUrl('hermiq') // '/index.php/apps/hermiq/api/chat/stream'

Derived from chatApiBase; appId falls back to DEFAULT_CHAT_APP_ID.

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