Do not leak the chat "workspace" term

This commit is contained in:
Kerollmops 2025-06-10 10:34:30 +02:00
parent 95d4775d4a
commit 605dea4f85
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F
4 changed files with 7 additions and 7 deletions

View File

@ -391,7 +391,7 @@ EditDocumentsByFunctionError , InvalidRequest , BAD_REQU
InvalidSettingsIndexChat , InvalidRequest , BAD_REQUEST ; InvalidSettingsIndexChat , InvalidRequest , BAD_REQUEST ;
// Experimental features - Chat Completions // Experimental features - Chat Completions
UnimplementedNonStreamingChatCompletions , InvalidRequest , NOT_IMPLEMENTED ; UnimplementedNonStreamingChatCompletions , InvalidRequest , NOT_IMPLEMENTED ;
ChatWorkspaceNotFound , InvalidRequest , NOT_FOUND ; ChatNotFound , InvalidRequest , NOT_FOUND ;
InvalidChatCompletionOrgId , InvalidRequest , BAD_REQUEST ; InvalidChatCompletionOrgId , InvalidRequest , BAD_REQUEST ;
InvalidChatCompletionProjectId , InvalidRequest , BAD_REQUEST ; InvalidChatCompletionProjectId , InvalidRequest , BAD_REQUEST ;
InvalidChatCompletionApiVersion , InvalidRequest , BAD_REQUEST ; InvalidChatCompletionApiVersion , InvalidRequest , BAD_REQUEST ;

View File

@ -321,7 +321,7 @@ async fn non_streamed_chat(
None => { None => {
return Err(ResponseError::from_msg( return Err(ResponseError::from_msg(
format!("Chat `{workspace_uid}` not found"), format!("Chat `{workspace_uid}` not found"),
Code::ChatWorkspaceNotFound, Code::ChatNotFound,
)) ))
} }
}; };
@ -419,7 +419,7 @@ async fn streamed_chat(
None => { None => {
return Err(ResponseError::from_msg( return Err(ResponseError::from_msg(
format!("Chat `{workspace_uid}` not found"), format!("Chat `{workspace_uid}` not found"),
Code::ChatWorkspaceNotFound, Code::ChatNotFound,
)) ))
} }
}; };

View File

@ -64,7 +64,7 @@ pub async fn get_chat(
} else { } else {
Err(ResponseError::from_msg( Err(ResponseError::from_msg(
format!("chat {workspace_uid} not found"), format!("chat {workspace_uid} not found"),
Code::ChatWorkspaceNotFound, Code::ChatNotFound,
)) ))
} }
} }
@ -83,7 +83,7 @@ pub async fn delete_chat(
} else { } else {
Err(ResponseError::from_msg( Err(ResponseError::from_msg(
format!("chat {workspace_uid} not found"), format!("chat {workspace_uid} not found"),
Code::ChatWorkspaceNotFound, Code::ChatNotFound,
)) ))
} }
} }

View File

@ -48,7 +48,7 @@ async fn get_settings(
None => { None => {
return Err(ResponseError::from_msg( return Err(ResponseError::from_msg(
format!("Chat `{workspace_uid}` not found"), format!("Chat `{workspace_uid}` not found"),
Code::ChatWorkspaceNotFound, Code::ChatNotFound,
)) ))
} }
}; };
@ -173,7 +173,7 @@ async fn reset_settings(
} else { } else {
Err(ResponseError::from_msg( Err(ResponseError::from_msg(
format!("Chat `{workspace_uid}` not found"), format!("Chat `{workspace_uid}` not found"),
Code::ChatWorkspaceNotFound, Code::ChatNotFound,
)) ))
} }
} }