move api authentication to embedding provider

This commit is contained in:
KCaverly 2023-09-21 14:00:00 -04:00
parent 997f362cc2
commit 7b63369df2
3 changed files with 13 additions and 7 deletions

View file

@ -1267,6 +1267,9 @@ impl FakeEmbeddingProvider {
#[async_trait]
impl EmbeddingProvider for FakeEmbeddingProvider {
fn is_authenticated(&self) -> bool {
true
}
fn truncate(&self, span: &str) -> (String, usize) {
(span.to_string(), 1)
}