mirror of
https://github.com/katanemo/plano.git
synced 2026-05-03 21:02:56 +02:00
make ratelimit section optional (#168)
This commit is contained in:
parent
f9e3a052fc
commit
6b70768170
4 changed files with 14 additions and 20 deletions
|
|
@ -944,7 +944,7 @@ impl StreamContext {
|
|||
) -> Result<(), ratelimit::Error> {
|
||||
if let Some(selector) = self.ratelimit_selector.take() {
|
||||
// Tokenize and Ratelimit.
|
||||
if let Ok(token_count) = tokenizer::token_count(model, &json_string) {
|
||||
if let Ok(token_count) = tokenizer::token_count(model, json_string) {
|
||||
ratelimit::ratelimits(None).read().unwrap().check_limit(
|
||||
model.to_owned(),
|
||||
selector,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue