mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-06-14 20:11:38 +02:00
Do not leak the chat "workspace" term
This commit is contained in:
parent
95d4775d4a
commit
605dea4f85
@ -391,7 +391,7 @@ EditDocumentsByFunctionError , InvalidRequest , BAD_REQU
|
||||
InvalidSettingsIndexChat , InvalidRequest , BAD_REQUEST ;
|
||||
// Experimental features - Chat Completions
|
||||
UnimplementedNonStreamingChatCompletions , InvalidRequest , NOT_IMPLEMENTED ;
|
||||
ChatWorkspaceNotFound , InvalidRequest , NOT_FOUND ;
|
||||
ChatNotFound , InvalidRequest , NOT_FOUND ;
|
||||
InvalidChatCompletionOrgId , InvalidRequest , BAD_REQUEST ;
|
||||
InvalidChatCompletionProjectId , InvalidRequest , BAD_REQUEST ;
|
||||
InvalidChatCompletionApiVersion , InvalidRequest , BAD_REQUEST ;
|
||||
|
@ -321,7 +321,7 @@ async fn non_streamed_chat(
|
||||
None => {
|
||||
return Err(ResponseError::from_msg(
|
||||
format!("Chat `{workspace_uid}` not found"),
|
||||
Code::ChatWorkspaceNotFound,
|
||||
Code::ChatNotFound,
|
||||
))
|
||||
}
|
||||
};
|
||||
@ -419,7 +419,7 @@ async fn streamed_chat(
|
||||
None => {
|
||||
return Err(ResponseError::from_msg(
|
||||
format!("Chat `{workspace_uid}` not found"),
|
||||
Code::ChatWorkspaceNotFound,
|
||||
Code::ChatNotFound,
|
||||
))
|
||||
}
|
||||
};
|
||||
|
@ -64,7 +64,7 @@ pub async fn get_chat(
|
||||
} else {
|
||||
Err(ResponseError::from_msg(
|
||||
format!("chat {workspace_uid} not found"),
|
||||
Code::ChatWorkspaceNotFound,
|
||||
Code::ChatNotFound,
|
||||
))
|
||||
}
|
||||
}
|
||||
@ -83,7 +83,7 @@ pub async fn delete_chat(
|
||||
} else {
|
||||
Err(ResponseError::from_msg(
|
||||
format!("chat {workspace_uid} not found"),
|
||||
Code::ChatWorkspaceNotFound,
|
||||
Code::ChatNotFound,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ async fn get_settings(
|
||||
None => {
|
||||
return Err(ResponseError::from_msg(
|
||||
format!("Chat `{workspace_uid}` not found"),
|
||||
Code::ChatWorkspaceNotFound,
|
||||
Code::ChatNotFound,
|
||||
))
|
||||
}
|
||||
};
|
||||
@ -173,7 +173,7 @@ async fn reset_settings(
|
||||
} else {
|
||||
Err(ResponseError::from_msg(
|
||||
format!("Chat `{workspace_uid}` not found"),
|
||||
Code::ChatWorkspaceNotFound,
|
||||
Code::ChatNotFound,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user