Skip to content

Commit 7dfcb23

Browse files
committed
fix: cortex chat endpoint paths to match client
1 parent 8b8bf2c commit 7dfcb23

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/api/cortex.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn map_cortex_chat_send_error(error: &CortexChatSendError) -> StatusCode {
7474
/// If no threads exist, returns an empty list with a fresh thread_id.
7575
#[utoipa::path(
7676
get,
77-
path = "/cortex/chat/messages",
77+
path = "/cortex-chat/messages",
7878
params(
7979
("agent_id" = String, Query, description = "Agent ID"),
8080
("thread_id" = Option<String>, Query, description = "Thread ID (omit for latest)"),
@@ -129,7 +129,7 @@ pub(super) async fn cortex_chat_messages(
129129
/// - `error` — if something went wrong
130130
#[utoipa::path(
131131
post,
132-
path = "/cortex/chat/send",
132+
path = "/cortex-chat/send",
133133
request_body = CortexChatSendRequest,
134134
responses(
135135
(status = 200, description = "SSE stream of chat events"),
@@ -210,7 +210,7 @@ pub(super) struct CortexChatDeleteThreadRequest {
210210
/// List all cortex chat threads for an agent, newest first.
211211
#[utoipa::path(
212212
get,
213-
path = "/cortex/chat/threads",
213+
path = "/cortex-chat/threads",
214214
params(
215215
("agent_id" = String, Query, description = "Agent ID"),
216216
),
@@ -240,7 +240,7 @@ pub(super) async fn cortex_chat_threads(
240240
/// Delete a cortex chat thread and all its messages.
241241
#[utoipa::path(
242242
delete,
243-
path = "/cortex/chat/threads",
243+
path = "/cortex-chat/thread",
244244
request_body = CortexChatDeleteThreadRequest,
245245
responses(
246246
(status = 204, description = "Thread deleted successfully"),

0 commit comments

Comments
 (0)