move api authentication to embedding provider
This commit is contained in:
parent
997f362cc2
commit
7b63369df2
3 changed files with 13 additions and 7 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue