mirror of
https://github.com/katanemo/plano.git
synced 2026-05-11 16:52:41 +02:00
retry embeddings fetch (#245)
This commit is contained in:
parent
9a5c5cc3a3
commit
9a6ae2efee
4 changed files with 79 additions and 41 deletions
|
|
@ -35,10 +35,10 @@ impl HttpContext for StreamContext {
|
|||
|
||||
let request_path = self.get_http_request_header(":path").unwrap_or_default();
|
||||
if request_path == HEALTHZ_PATH {
|
||||
if self.embeddings_store.is_none() {
|
||||
self.send_http_response(503, vec![], None);
|
||||
} else {
|
||||
if self.is_embedding_store_initialized() {
|
||||
self.send_http_response(200, vec![], None);
|
||||
} else {
|
||||
self.send_http_response(503, vec![], None);
|
||||
}
|
||||
return Action::Continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue