mirror of
https://github.com/katanemo/plano.git
synced 2026-06-20 15:28:07 +02:00
fmt/clippy
This commit is contained in:
parent
29503ba95e
commit
22fde1f333
6 changed files with 6 additions and 8 deletions
|
|
@ -230,7 +230,6 @@ impl IntoModels for Vec<LlmProvider> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
impl Default for LlmProvider {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use proxy_wasm::types::Status;
|
||||
|
||||
use crate::{api::open_ai::ChatCompletionChunkResponseError, ratelimit};
|
||||
use hermesllm::providers::openai::types::{OpenAIError};
|
||||
use hermesllm::providers::openai::types::OpenAIError;
|
||||
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
pub enum ClientError {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ pub fn token_count(model_name: &str, text: &str) -> Result<usize, String> {
|
|||
);
|
||||
"gpt-4"
|
||||
}
|
||||
true => model_name
|
||||
true => model_name,
|
||||
};
|
||||
|
||||
// Consideration: is it more expensive to instantiate the BPE object every time, or to contend the singleton?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue