mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
refactor callout context arm handler code
This commit is contained in:
parent
09824c7236
commit
5ecdf30fdc
1 changed files with 4 additions and 13 deletions
|
|
@ -484,19 +484,10 @@ impl Context for StreamContext {
|
|||
};
|
||||
|
||||
match callout_context.request_type {
|
||||
RequestType::GetEmbedding => {
|
||||
self.embeddings_handler(body, callout_context);
|
||||
}
|
||||
|
||||
RequestType::SearchPoints => {
|
||||
self.search_points_handler(body, callout_context);
|
||||
}
|
||||
RequestType::Ner => {
|
||||
self.ner_handler(body, callout_context);
|
||||
}
|
||||
RequestType::ContextResolver => {
|
||||
self.context_resolver_handler(body, callout_context);
|
||||
}
|
||||
RequestType::GetEmbedding => self.embeddings_handler(body, callout_context),
|
||||
RequestType::SearchPoints => self.search_points_handler(body, callout_context),
|
||||
RequestType::Ner => self.ner_handler(body, callout_context),
|
||||
RequestType::ContextResolver => self.context_resolver_handler(body, callout_context),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue