diff options
| author | sigoden <sigoden@gmail.com> | 2024-04-11 05:03:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-11 05:03:58 +0800 |
| commit | 3b5843fe2e6b4e3725bbc1b269c23115c953b2b0 (patch) | |
| tree | a1d2c36dbccf0c82079f774d1efe08c993ee31f2 /src/client/openai_compatible.rs | |
| parent | 01ebc8734838e13fb533022c1d24e7003ed42935 (diff) | |
| download | aichat-3b5843fe2e6b4e3725bbc1b269c23115c953b2b0.tar.gz | |
refactor: all clients use openai token counter (#402)
Diffstat (limited to 'src/client/openai_compatible.rs')
| -rw-r--r-- | src/client/openai_compatible.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/openai_compatible.rs b/src/client/openai_compatible.rs index ec36623..595b2cd 100644 --- a/src/client/openai_compatible.rs +++ b/src/client/openai_compatible.rs @@ -1,4 +1,4 @@ -use super::openai::{openai_build_body, OPENAI_TOKENS_COUNT_FACTORS}; +use super::openai::openai_build_body; use super::{ExtraConfig, Model, ModelConfig, OpenAICompatibleClient, PromptType, SendData}; use crate::utils::PromptKind; @@ -47,7 +47,6 @@ impl OpenAICompatibleClient { .set_capabilities(v.capabilities) .set_max_input_tokens(v.max_input_tokens) .set_extra_fields(v.extra_fields.clone()) - .set_tokens_count_factors(OPENAI_TOKENS_COUNT_FACTORS) }) .collect() } |
