From 755dcc6957a01380fbbfdb3b7377c8e79b6fcebc Mon Sep 17 00:00:00 2001 From: AngelosZa Date: Sun, 24 Aug 2025 14:07:03 +0300 Subject: [PATCH] feat: add host --- .../backend-controlled-ui-compatible-flow.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/tutorials/integrations/backend-controlled-ui-compatible-flow.md b/docs/tutorials/integrations/backend-controlled-ui-compatible-flow.md index d02a9dff..6ba5a666 100644 --- a/docs/tutorials/integrations/backend-controlled-ui-compatible-flow.md +++ b/docs/tutorials/integrations/backend-controlled-ui-compatible-flow.md @@ -73,9 +73,9 @@ Without this enrichment, the assistant's response will not appear in the fronten ### Step 1: Create Chat with User Message This starts the chat and returns a `chatId` that will be used in subsequent requests. - + ```bash -curl -X POST https://rag-ui.ai.nu.education/api/v1/chats/new \ +curl -X POST https:///api/v1/chats/new \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ @@ -129,7 +129,7 @@ public void enrichChatWithAssistantMessage(OWUIChatResponse chatResponse, String After creating the chat and enriching it with the assistant message, fetch the first chat response to get the initial state: ```bash -curl -X POST https://rag-ui.ai.nu.education/api/v1/chats/ \ +curl -X POST https:///api/v1/chats/ \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ @@ -185,7 +185,7 @@ curl -X POST https://rag-ui.ai.nu.education/api/v1/chats/ \ Generate the actual AI response using the completion endpoint: ```bash -curl -X POST https://rag-ui.ai.nu.education/api/chat/completions \ +curl -X POST https:///api/chat/completions \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ @@ -225,7 +225,7 @@ curl -X POST https://rag-ui.ai.nu.education/api/chat/completions \ For advanced use cases involving knowledge bases or document collections, include knowledge files in the completion request: ```bash -curl -X POST https://rag-ui.ai.nu.education/api/chat/completions \ +curl -X POST https:///api/chat/completions \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ @@ -296,7 +296,7 @@ For manual polling, you can use: ```bash # Poll every few seconds until assistant content is populated while true; do - response=$(curl -s -X GET https://rag-ui.ai.nu.education/api/v1/chats/ \ + response=$(curl -s -X GET https:///api/v1/chats/ \ -H "Authorization: Bearer ") # Check if assistant message has content (response is ready) @@ -315,7 +315,7 @@ done Once the assistant response is ready, mark it as completed: ```bash -curl -X POST https://rag-ui.ai.nu.education/api/chat/completed \ +curl -X POST https:///api/chat/completed \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ @@ -331,7 +331,7 @@ curl -X POST https://rag-ui.ai.nu.education/api/chat/completed \ Retrieve the completed conversation: ```bash -curl -X GET https://rag-ui.ai.nu.education/api/v1/chats/ \ +curl -X GET https:///api/v1/chats/ \ -H "Authorization: Bearer " ``` @@ -342,7 +342,7 @@ curl -X GET https://rag-ui.ai.nu.education/api/v1/chats/ \ Retrieve knowledge base information for RAG integration: ```bash -curl -X GET https://rag-ui.ai.nu.education/api/v1/knowledge/ \ +curl -X GET https:///api/v1/knowledge/ \ -H "Authorization: Bearer " ``` @@ -351,7 +351,7 @@ curl -X GET https://rag-ui.ai.nu.education/api/v1/knowledge/ \ Get details about a specific model: ```bash -curl -X GET https://rag-ui.ai.nu.education/api/v1/models/model?id= \ +curl -X GET https:///api/v1/models/model?id= \ -H "Authorization: Bearer " ``` @@ -360,7 +360,7 @@ curl -X GET https://rag-ui.ai.nu.education/api/v1/models/model?id= \ For multi-turn conversations, you can send additional messages to an existing chat: ```bash -curl -X POST https://rag-ui.ai.nu.education/api/v1/chats/ \ +curl -X POST https:///api/v1/chats/ \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{