updated semantic_index reset status to leverage target reset system time as opposed to duration
This commit is contained in:
parent
a5ee8fc805
commit
bf43f93197
4 changed files with 50 additions and 55 deletions
|
@ -21,7 +21,7 @@ use std::{
|
|||
atomic::{self, AtomicUsize},
|
||||
Arc,
|
||||
},
|
||||
time::{Duration, SystemTime},
|
||||
time::SystemTime,
|
||||
};
|
||||
use unindent::Unindent;
|
||||
use util::RandomCharIter;
|
||||
|
@ -1275,8 +1275,8 @@ impl EmbeddingProvider for FakeEmbeddingProvider {
|
|||
200
|
||||
}
|
||||
|
||||
fn rate_limit_expiration(&self) -> Duration {
|
||||
Duration::ZERO
|
||||
fn rate_limit_expiration(&self) -> Option<SystemTime> {
|
||||
None
|
||||
}
|
||||
|
||||
async fn embed_batch(&self, spans: Vec<String>) -> Result<Vec<Embedding>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue