Make the chats settings and chat completions route experimental

This commit is contained in:
Kerollmops 2025-05-30 15:56:57 +02:00 committed by Clément Renault
parent ae135d1d46
commit 3b931e75d9
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
7 changed files with 37 additions and 3 deletions

View file

@ -131,6 +131,19 @@ impl RoFeatures {
.into())
}
}
pub fn check_chat_completions(&self, disabled_action: &'static str) -> Result<()> {
if self.runtime.chat_completions {
Ok(())
} else {
Err(FeatureNotEnabledError {
disabled_action,
feature: "chat completions",
issue_link: "https://github.com/orgs/meilisearch/discussions/835",
}
.into())
}
}
}
impl FeatureData {