From e81658d1d2913312a8909eac0f8889417814ff02 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Sat, 20 Dec 2025 23:55:48 -0300 Subject: [PATCH] docs(ai): add curl quick-start to Atlas AI chat page --- frontend/src/views/AiView.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/src/views/AiView.vue b/frontend/src/views/AiView.vue index f0b8f9e..8e0dd8e 100644 --- a/frontend/src/views/AiView.vue +++ b/frontend/src/views/AiView.vue @@ -59,6 +59,24 @@ + +
+

API quick start

+

+ The UI hits /api/ai/chat on the same host. External callers can hit the public endpoint + https://chat.ai.bstein.dev/api/ai/chat. POST JSON with a message and optional + history. +

+
+curl -X POST https://chat.ai.bstein.dev/api/ai/chat \
+  -H 'content-type: application/json' \
+  -d '{"message":"hi, what is your name?"}'
+

+ Responses stream in the UI. API callers get either a JSON body { reply, latency_ms } or a streamed text + body if available. +

+