mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fmt
This commit is contained in:
parent
c9b62fc52e
commit
48d058ce5c
4 changed files with 3 additions and 7 deletions
|
|
@ -50,8 +50,7 @@ pub trait Client: Context {
|
|||
) -> Result<u32, ClientError> {
|
||||
debug!(
|
||||
"dispatching http call with args={:?} context={:?}",
|
||||
call_args,
|
||||
call_context
|
||||
call_args, call_context
|
||||
);
|
||||
|
||||
match self.dispatch_http_call(
|
||||
|
|
|
|||
|
|
@ -101,9 +101,7 @@ impl RatelimitMap {
|
|||
) -> Result<(), Error> {
|
||||
debug!(
|
||||
"Checking limit for provider={}, with selector={:?}, consuming tokens={:?}",
|
||||
provider,
|
||||
selector,
|
||||
tokens_used
|
||||
provider, selector, tokens_used
|
||||
);
|
||||
|
||||
let provider_limits = match self.datastore.get(&provider) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use log::{debug};
|
||||
use log::debug;
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn token_count(model_name: &str, text: &str) -> Result<usize, String> {
|
||||
|
|
|
|||
|
|
@ -153,7 +153,6 @@ impl StreamContext {
|
|||
.and_then(|metadata| metadata.get(X_ARCH_FC_MODEL_RESPONSE))
|
||||
.cloned();
|
||||
|
||||
|
||||
if !intent_matched {
|
||||
// check if we have a default prompt target
|
||||
if let Some(default_prompt_target) = self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue