mirror of
https://github.com/katanemo/plano.git
synced 2026-06-26 15:39:40 +02:00
more fixes
This commit is contained in:
parent
f809eae5fd
commit
54f67ce2be
4 changed files with 25 additions and 15 deletions
|
|
@ -159,11 +159,11 @@ impl StreamContext {
|
|||
// Tokenize and record token count.
|
||||
let token_count = tokenizer::token_count(model, json_string).unwrap_or(0);
|
||||
|
||||
trace!("Recorded input token count: {}", token_count);
|
||||
// Record the token count to metrics.
|
||||
self.metrics
|
||||
.input_sequence_length
|
||||
.record(token_count as u64);
|
||||
trace!("Recorded input token count: {}", token_count);
|
||||
|
||||
// Check if rate limiting needs to be applied.
|
||||
if let Some(selector) = self.ratelimit_selector.take() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue