[INFO] cloning repository https://github.com/emsurezhang/LLM-Gateway
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/emsurezhang/LLM-Gateway" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femsurezhang%2FLLM-Gateway", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femsurezhang%2FLLM-Gateway'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 59f7030b83d01dcb08b634a597ccddad16a669cc
[INFO] building emsurezhang/LLM-Gateway against try#58b1b3c5342a414c161338871f8004258ccef2a7 for pr-149937
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femsurezhang%2FLLM-Gateway" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/emsurezhang/LLM-Gateway
[INFO] finished tweaking git repo https://github.com/emsurezhang/LLM-Gateway
[INFO] tweaked toml for git repo https://github.com/emsurezhang/LLM-Gateway written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/emsurezhang/LLM-Gateway on toolchain 58b1b3c5342a414c161338871f8004258ccef2a7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/emsurezhang/LLM-Gateway already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 38c71f92fe0eee6660948cc2f6a24a65e2d9e95af2835462809b251d836c7f88
[INFO] running `Command { std: "docker" "start" "-a" "38c71f92fe0eee6660948cc2f6a24a65e2d9e95af2835462809b251d836c7f88", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "38c71f92fe0eee6660948cc2f6a24a65e2d9e95af2835462809b251d836c7f88", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "38c71f92fe0eee6660948cc2f6a24a65e2d9e95af2835462809b251d836c7f88", kill_on_drop: false }`
[INFO] [stdout] 38c71f92fe0eee6660948cc2f6a24a65e2d9e95af2835462809b251d836c7f88
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d80a6c0787ef11720bc0c69b19586cd8dc3dbac9708bb15d317e2703a5768e10
[INFO] running `Command { std: "docker" "start" "-a" "d80a6c0787ef11720bc0c69b19586cd8dc3dbac9708bb15d317e2703a5768e10", kill_on_drop: false }`
[INFO] [stderr]    Compiling cfg-if v1.0.3
[INFO] [stderr]    Compiling libc v0.2.175
[INFO] [stderr]    Compiling value-bag v1.11.1
[INFO] [stderr]    Compiling syn v2.0.106
[INFO] [stderr]    Compiling bitflags v2.9.4
[INFO] [stderr]    Compiling find-msvc-tools v0.1.0
[INFO] [stderr]    Compiling linux-raw-sys v0.9.4
[INFO] [stderr]    Compiling tracing-core v0.1.34
[INFO] [stderr]    Compiling futures-lite v2.6.1
[INFO] [stderr]    Compiling cc v1.2.35
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling log v0.4.28
[INFO] [stderr]    Compiling zerocopy v0.8.26
[INFO] [stderr]    Compiling async-task v4.7.1
[INFO] [stderr]    Compiling piper v0.2.4
[INFO] [stderr]    Compiling serde_json v1.0.143
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling polling v2.8.0
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling parking_lot v0.12.4
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling socket2 v0.4.10
[INFO] [stderr]    Compiling mio v1.0.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling socket2 v0.6.0
[INFO] [stderr]    Compiling signal-hook-registry v1.4.6
[INFO] [stderr]    Compiling io-lifetimes v1.0.11
[INFO] [stderr]    Compiling rustix v1.0.8
[INFO] [stderr]    Compiling openssl-sys v0.9.109
[INFO] [stderr]    Compiling indexmap v2.11.0
[INFO] [stderr]    Compiling event-listener-strategy v0.5.4
[INFO] [stderr]    Compiling async-executor v1.13.3
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]    Compiling openssl v0.10.73
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling rustix v0.37.28
[INFO] [stderr]    Compiling async-io v1.13.0
[INFO] [stderr]    Compiling fastrand v1.9.0
[INFO] [stderr]    Compiling linux-raw-sys v0.3.8
[INFO] [stderr]    Compiling waker-fn v1.2.0
[INFO] [stderr]    Compiling async-lock v2.8.0
[INFO] [stderr]    Compiling futures-lite v1.13.0
[INFO] [stderr]    Compiling async-channel v1.9.0
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling async-lock v3.4.1
[INFO] [stderr]    Compiling async-channel v2.5.0
[INFO] [stderr]    Compiling unicode_categories v0.1.1
[INFO] [stderr]    Compiling blocking v1.6.2
[INFO] [stderr]    Compiling hashlink v0.8.4
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling libsqlite3-sys v0.27.0
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling sqlformat v0.2.6
[INFO] [stderr]    Compiling kv-log-macro v1.0.7
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling zerotrie v0.2.2
[INFO] [stderr]    Compiling zerovec v0.11.4
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling tinystr v0.8.1
[INFO] [stderr]    Compiling potential_utf v0.1.3
[INFO] [stderr]    Compiling icu_locale_core v2.0.0
[INFO] [stderr]    Compiling icu_collections v2.0.0
[INFO] [stderr]    Compiling tokio v1.47.1
[INFO] [stderr]    Compiling icu_provider v2.0.0
[INFO] [stderr]    Compiling icu_properties v2.0.1
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling icu_normalizer v2.0.0
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling polling v3.10.0
[INFO] [stderr]    Compiling async-io v2.5.0
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling async-global-executor v2.4.1
[INFO] [stderr]    Compiling async-std v1.13.2
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling urlencoding v2.1.3
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling flume v0.11.1
[INFO] [stderr]    Compiling sqlx-core v0.7.4
[INFO] [stderr]    Compiling unicode-segmentation v1.12.0
[INFO] [stderr]    Compiling tokio-util v0.7.16
[INFO] [stderr]    Compiling regex-syntax v0.8.6
[INFO] [stderr]    Compiling universal-hash v0.5.1
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling regex-automata v0.4.10
[INFO] [stderr]    Compiling tempfile v3.21.0
[INFO] [stderr]    Compiling sqlx-sqlite v0.7.4
[INFO] [stderr]    Compiling sync_wrapper v1.0.2
[INFO] [stderr]    Compiling portable-atomic v1.11.1
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]    Compiling polyval v0.6.2
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling sharded-slab v0.1.7
[INFO] [stderr]    Compiling deranged v0.5.3
[INFO] [stderr]    Compiling hyper v1.7.0
[INFO] [stderr]    Compiling sqlx-macros-core v0.7.4
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling tracing-serde v0.2.0
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling thread_local v1.1.9
[INFO] [stderr]    Compiling crossbeam-channel v0.5.15
[INFO] [stderr]    Compiling nu-ansi-term v0.50.1
[INFO] [stderr]    Compiling anyhow v1.0.99
[INFO] [stderr]    Compiling moka v0.12.10
[INFO] [stderr]    Compiling tracing-subscriber v0.3.20
[INFO] [stderr]    Compiling time v0.3.43
[INFO] [stderr]    Compiling sqlx-macros v0.7.4
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling axum-core v0.4.5
[INFO] [stderr]    Compiling hyper-util v0.1.16
[INFO] [stderr]    Compiling ghash v0.5.1
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling ctr v0.9.2
[INFO] [stderr]    Compiling aes v0.8.4
[INFO] [stderr]    Compiling serde_path_to_error v0.1.17
[INFO] [stderr]    Compiling aead v0.5.2
[INFO] [stderr]    Compiling uuid v1.18.1
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling tagptr v0.2.0
[INFO] [stderr]    Compiling http-range-header v0.4.2
[INFO] [stderr]    Compiling tower-http v0.5.2
[INFO] [stderr]    Compiling axum v0.7.9
[INFO] [stderr]    Compiling sqlx v0.7.4
[INFO] [stderr]    Compiling tracing-appender v0.2.3
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling aes-gcm v0.10.3
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling bytes v0.6.0
[INFO] [stderr]    Compiling project_rust_learn v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `warn`
[INFO] [stdout]  --> src/dao/model/preload.rs:5:35
[INFO] [stdout]   |
[INFO] [stdout] 5 | use tracing::{info, error, debug, warn};
[INFO] [stdout]   |                                   ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `verify_key_integrity`
[INFO] [stdout]  --> src/dao/provider_key_pool/provider_key_pool.rs:3:62
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::dao::provider_key_pool::crypto::{process_api_key, verify_key_integrity};
[INFO] [stdout]   |                                                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `delete` and `post`
[INFO] [stdout]  --> src/web/server.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 |     routing::{get, post, put, delete},
[INFO] [stdout]   |                    ^^^^       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sqlx::SqlitePool`
[INFO] [stdout]  --> src/web/handlers/api_key_handler.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use sqlx::SqlitePool;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `decrypt_api_key` and `process_api_key`
[INFO] [stdout]   --> src/web/handlers/api_key_handler.rs:24:45
[INFO] [stdout]    |
[INFO] [stdout] 24 | use crate::dao::provider_key_pool::crypto::{process_api_key, decrypt_api_key};
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `base_client` and `base_url` are never read
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:63:5
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub struct DynamicAliClient {
[INFO] [stdout]    |            ---------------- fields in this struct
[INFO] [stdout] 63 |     base_client: BaseClient,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 64 |     base_url: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:56:23
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<T> {
[INFO] [stdout]    |                       ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<'_, T> {
[INFO] [stdout]    |                                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_model`, `delete_model`, `get_model_by_id`, and `update_model`
[INFO] [stdout]  --> src/dao/model/mod.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub use model::{Model, create_model, list_models, update_model, delete_model, get_model_by_id, get_model_by_provider_and_name};
[INFO] [stdout]   |                        ^^^^^^^^^^^^               ^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `warn`
[INFO] [stdout]  --> src/dao/model/preload.rs:5:35
[INFO] [stdout]   |
[INFO] [stdout] 5 | use tracing::{info, error, debug, warn};
[INFO] [stdout]   |                                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `provider::*`
[INFO] [stdout]  --> src/dao/provider/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use provider::*;
[INFO] [stdout]   |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `verify_key_integrity`
[INFO] [stdout]  --> src/dao/provider_key_pool/provider_key_pool.rs:3:62
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::dao::provider_key_pool::crypto::{process_api_key, verify_key_integrity};
[INFO] [stdout]   |                                                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_provider_key_pool_from_raw_key`, `create_provider_key_pool`, `delete_provider_key_pool`, `list_active_provider_key_pools`, `list_provider_key_pools_by_provider`, `toggle_provider_key_pool_active`, `update_key_pool_usage`, and `update_provider_key_pool`
[INFO] [stdout]   --> src/dao/provider_key_pool/mod.rs:7:5
[INFO] [stdout]    |
[INFO] [stdout]  7 |     create_provider_key_pool, 
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 10 |     list_provider_key_pools_by_provider,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |     list_active_provider_key_pools,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     update_provider_key_pool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     update_key_pool_usage,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     delete_provider_key_pool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     toggle_provider_key_pool_active,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |     create_provider_key_pool_from_raw_key
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CachedProviderKeyPool` and `insert_cached_provider_key_pool_to_cache`
[INFO] [stdout]   --> src/dao/provider_key_pool/mod.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 |     CachedProviderKeyPool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     insert_cached_provider_key_pool_to_cache,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `decrypt_api_key`, `encrypt_api_key`, `generate_key_hash`, `process_api_key`, and `verify_key_integrity`
[INFO] [stdout]   --> src/dao/provider_key_pool/mod.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     generate_key_hash,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 35 |     encrypt_api_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 36 |     decrypt_api_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 37 |     process_api_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 38 |     verify_key_integrity
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SystemConfig`, `create_system_config`, `delete_system_config`, `delete_system_configs_by_category`, `get_system_config_by_id`, `get_system_config_by_key`, `get_system_config_value`, `list_encrypted_system_configs`, `list_system_configs_by_category`, `list_system_configs`, `system_config_exists`, `update_system_config_encryption`, `update_system_config_value`, and `update_system_config`
[INFO] [stdout]   --> src/dao/system_config/mod.rs:4:5
[INFO] [stdout]    |
[INFO] [stdout]  4 |     SystemConfig,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]  5 |     create_system_config,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  6 |     get_system_config_by_id,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  7 |     get_system_config_by_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |     list_system_configs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  9 |     list_system_configs_by_category,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10 |     list_encrypted_system_configs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |     update_system_config,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     update_system_config_value,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     update_system_config_encryption,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     delete_system_config,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     delete_system_configs_by_category,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |     system_config_exists,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     get_system_config_value
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CallLogStats`, `count_call_logs_by_model`, `count_call_logs`, `delete_call_log`, `delete_call_logs_by_model`, `delete_old_call_logs`, `get_call_log_by_id`, `get_call_logs_stats_by_model`, `get_call_logs_stats`, `list_call_logs_by_date_range`, `list_call_logs_by_model`, `list_call_logs_by_status`, `list_call_logs_paginated`, `list_call_logs`, `list_error_call_logs`, and `update_call_log`
[INFO] [stdout]   --> src/dao/call_log/mod.rs:5:5
[INFO] [stdout]    |
[INFO] [stdout]  5 |     CallLogStats,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]  6 |     create_call_log,
[INFO] [stdout]  7 |     get_call_log_by_id,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |     list_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]  9 |     list_call_logs_paginated,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10 |     list_call_logs_by_model,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |     list_call_logs_by_status,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     list_error_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     list_call_logs_by_date_range,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     get_call_logs_stats,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     get_call_logs_stats_by_model,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |     update_call_log,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     delete_call_log,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 18 |     delete_call_logs_by_model,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 19 |     delete_old_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 20 |     count_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 21 |     count_call_logs_by_model
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `get_active_key_count`, `get_api_key_round_robin`, `get_round_robin_counter`, `reload_provider_api_keys`, and `reset_round_robin_counter`
[INFO] [stdout]   --> src/llm_api/utils/mod.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     get_api_key_round_robin,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     reload_provider_api_keys,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     reset_round_robin_counter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     get_round_robin_counter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     get_active_key_count
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `warn`
[INFO] [stdout]  --> src/main.rs:8:28
[INFO] [stdout]   |
[INFO] [stdout] 8 | use tracing::{info, error, warn, debug};
[INFO] [stdout]   |                            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::llm_api::ollama::client`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::llm_api::ollama::client;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_or_load` and `invalidate` are never used
[INFO] [stdout]   --> src/dao/cache/cache.rs:32:18
[INFO] [stdout]    |
[INFO] [stdout] 10 | / impl<K, V> CacheService<K, V>
[INFO] [stdout] 11 | | where
[INFO] [stdout] 12 | |     K: std::hash::Hash + Eq + Clone + Send + Sync + 'static,
[INFO] [stdout] 13 | |     V: Clone + Send + Sync + 'static,
[INFO] [stdout]    | |_____________________________________- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |       pub async fn get_or_load<F, Fut>(&self, key: K, loader: F) -> V
[INFO] [stdout]    |                    ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 48 |       pub async fn invalidate(&self, key: &K) {
[INFO] [stdout]    |                    ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_model` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:25:14
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub async fn create_model(pool: &SqlitePool, model: &Model) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_by_id` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:51:14
[INFO] [stdout]    |
[INFO] [stdout] 51 | pub async fn get_model_by_id(pool: &SqlitePool, id: &str) -> Result<Option<Model>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_by_provider_and_name` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:59:14
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub async fn get_model_by_provider_and_name(pool: &SqlitePool, provider: &str, name: &str) -> Result<Option<Model>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_model` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:77:14
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub async fn update_model(pool: &SqlitePool, model: &Model) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_model` is never used
[INFO] [stdout]    --> src/dao/model/model.rs:114:14
[INFO] [stdout]     |
[INFO] [stdout] 114 | pub async fn delete_model(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_from_cache` is never used
[INFO] [stdout]   --> src/dao/model/preload.rs:45:14
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub async fn get_model_from_cache(provider: &str, name: &str) -> Option<Model> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `insert_model_to_cache` is never used
[INFO] [stdout]   --> src/dao/model/preload.rs:67:14
[INFO] [stdout]    |
[INFO] [stdout] 67 | pub async fn insert_model_to_cache(model: &Model) -> Result<()> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Provider` is never constructed
[INFO] [stdout]  --> src/dao/provider/provider.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Provider {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub async fn create_provider(pool: &SqlitePool, provider: &Provider) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_provider_by_id` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn get_provider_by_id(pool: &SqlitePool, id: &str) -> Result<Option<Provider>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_provider_by_name` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:44:14
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub async fn get_provider_by_name(pool: &SqlitePool, name: &str) -> Result<Option<Provider>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_providers` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:53:14
[INFO] [stdout]    |
[INFO] [stdout] 53 | pub async fn get_all_providers(pool: &SqlitePool) -> Result<Vec<Provider>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:61:14
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub async fn update_provider(pool: &SqlitePool, id: &str, provider: &Provider) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:78:14
[INFO] [stdout]    |
[INFO] [stdout] 78 | pub async fn delete_provider(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `hard_delete_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:87:14
[INFO] [stdout]    |
[INFO] [stdout] 87 | pub async fn hard_delete_provider(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `count_models_for_provider` is never used
[INFO] [stdout]    --> src/dao/provider/provider.rs:103:14
[INFO] [stdout]     |
[INFO] [stdout] 103 | pub async fn count_models_for_provider(pool: &SqlitePool, provider_id: &str) -> Result<i64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_provider_key_pool` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn create_provider_key_pool(pool: &SqlitePool, key_pool: &ProviderKeyPool) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_provider_key_pool_by_id` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:43:14
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub async fn get_provider_key_pool_by_id(pool: &SqlitePool, id: &str) -> Result<Option<ProviderKeyPool>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_provider_key_pools_by_provider` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:60:14
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub async fn list_provider_key_pools_by_provider(pool: &SqlitePool, provider: &str) -> Result<Vec<ProviderKeyPool>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_active_provider_key_pools` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:69:14
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub async fn list_active_provider_key_pools(pool: &SqlitePool) -> Result<Vec<ProviderKeyPool>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_provider_key_pool` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:77:14
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub async fn update_provider_key_pool(pool: &SqlitePool, key_pool: &ProviderKeyPool) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_key_pool_usage` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:105:14
[INFO] [stdout]     |
[INFO] [stdout] 105 | pub async fn update_key_pool_usage(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_provider_key_pool` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:119:14
[INFO] [stdout]     |
[INFO] [stdout] 119 | pub async fn delete_provider_key_pool(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `toggle_provider_key_pool_active` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:128:14
[INFO] [stdout]     |
[INFO] [stdout] 128 | pub async fn toggle_provider_key_pool_active(pool: &SqlitePool, id: &str, is_active: bool) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_provider_key_pool_from_raw_key` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:152:14
[INFO] [stdout]     |
[INFO] [stdout] 152 | pub async fn create_provider_key_pool_from_raw_key(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `insert_provider_key_pool_to_cache` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:167:14
[INFO] [stdout]     |
[INFO] [stdout] 167 | pub async fn insert_provider_key_pool_to_cache(key_pool: &ProviderKeyPool) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `insert_cached_provider_key_pool_to_cache` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:185:14
[INFO] [stdout]     |
[INFO] [stdout] 185 | pub async fn insert_cached_provider_key_pool_to_cache(cached_key_pool: &CachedProviderKeyPool) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_api_key_round_robin` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:209:14
[INFO] [stdout]     |
[INFO] [stdout] 209 | pub async fn get_api_key_round_robin(provider: &str) -> Option<(String, String)> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reload_provider_api_keys` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:267:14
[INFO] [stdout]     |
[INFO] [stdout] 267 | pub async fn reload_provider_api_keys(pool: &SqlitePool, provider: &str) -> anyhow::Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reset_round_robin_counter` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:303:14
[INFO] [stdout]     |
[INFO] [stdout] 303 | pub async fn reset_round_robin_counter(provider: &str) {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_round_robin_counter` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:318:14
[INFO] [stdout]     |
[INFO] [stdout] 318 | pub async fn get_round_robin_counter(provider: &str) -> usize {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_active_key_count` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:332:14
[INFO] [stdout]     |
[INFO] [stdout] 332 | pub async fn get_active_key_count(provider: &str) -> usize {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_key_hash` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/crypto.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub fn generate_key_hash(api_key: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `encrypt_api_key` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/crypto.rs:35:8
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub fn encrypt_api_key(api_key: &str) -> Result<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_api_key` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/crypto.rs:100:8
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub fn process_api_key(api_key: &str) -> Result<(String, String)> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `verify_key_integrity` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/crypto.rs:114:8
[INFO] [stdout]     |
[INFO] [stdout] 114 | pub fn verify_key_integrity(decrypted_key: &str, stored_hash: &str) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_system_config` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub async fn create_system_config(pool: &SqlitePool, config: &SystemConfig) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_system_config_by_id` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn get_system_config_by_id(pool: &SqlitePool, id: &str) -> Result<Option<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_system_config_by_key` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:44:14
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub async fn get_system_config_by_key(pool: &SqlitePool, category: &str, key_name: &str) -> Result<Option<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_system_configs` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:54:14
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub async fn list_system_configs(pool: &SqlitePool) -> Result<Vec<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_system_configs_by_category` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:62:14
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub async fn list_system_configs_by_category(pool: &SqlitePool, category: &str) -> Result<Vec<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_encrypted_system_configs` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:71:14
[INFO] [stdout]    |
[INFO] [stdout] 71 | pub async fn list_encrypted_system_configs(pool: &SqlitePool) -> Result<Vec<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_system_config` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:79:14
[INFO] [stdout]    |
[INFO] [stdout] 79 | pub async fn update_system_config(pool: &SqlitePool, config: &SystemConfig) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_system_config_value` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:101:14
[INFO] [stdout]     |
[INFO] [stdout] 101 | pub async fn update_system_config_value(pool: &SqlitePool, category: &str, key_name: &str, value: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_system_config_encryption` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:118:14
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub async fn update_system_config_encryption(pool: &SqlitePool, id: &str, is_encrypted: bool, encrypted_value: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_system_config` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:136:14
[INFO] [stdout]     |
[INFO] [stdout] 136 | pub async fn delete_system_config(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_system_configs_by_category` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:145:14
[INFO] [stdout]     |
[INFO] [stdout] 145 | pub async fn delete_system_configs_by_category(pool: &SqlitePool, category: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `system_config_exists` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:154:14
[INFO] [stdout]     |
[INFO] [stdout] 154 | pub async fn system_config_exists(pool: &SqlitePool, category: &str, key_name: &str) -> Result<bool> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_system_config_value` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:164:14
[INFO] [stdout]     |
[INFO] [stdout] 164 | pub async fn get_system_config_value(pool: &SqlitePool, category: &str, key_name: &str) -> Result<Option<String>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_call_log` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub async fn create_call_log(pool: &SqlitePool, call_log: &CallLog) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_call_log_by_id` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn get_call_log_by_id(pool: &SqlitePool, id: &str) -> Result<Option<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:44:14
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub async fn list_call_logs(pool: &SqlitePool) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_paginated` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:52:14
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub async fn list_call_logs_paginated(pool: &SqlitePool, limit: i64, offset: i64) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_by_model` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:62:14
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub async fn list_call_logs_by_model(pool: &SqlitePool, model_id: &str) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_by_status` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:71:14
[INFO] [stdout]    |
[INFO] [stdout] 71 | pub async fn list_call_logs_by_status(pool: &SqlitePool, status_code: i64) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_error_call_logs` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:80:14
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub async fn list_error_call_logs(pool: &SqlitePool) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_by_date_range` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:88:14
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub async fn list_call_logs_by_date_range(pool: &SqlitePool, start_date: &str, end_date: &str) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_call_logs_stats` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:100:14
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub async fn get_call_logs_stats(pool: &SqlitePool) -> Result<CallLogStats> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_call_logs_stats_by_model` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:117:14
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub async fn get_call_logs_stats_by_model(pool: &SqlitePool, model_id: &str) -> Result<CallLogStats> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_call_log` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:135:14
[INFO] [stdout]     |
[INFO] [stdout] 135 | pub async fn update_call_log(pool: &SqlitePool, call_log: &CallLog) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_call_log` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:157:14
[INFO] [stdout]     |
[INFO] [stdout] 157 | pub async fn delete_call_log(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_call_logs_by_model` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:166:14
[INFO] [stdout]     |
[INFO] [stdout] 166 | pub async fn delete_call_logs_by_model(pool: &SqlitePool, model_id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_old_call_logs` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:175:14
[INFO] [stdout]     |
[INFO] [stdout] 175 | pub async fn delete_old_call_logs(pool: &SqlitePool, before_date: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `count_call_logs` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:184:14
[INFO] [stdout]     |
[INFO] [stdout] 184 | pub async fn count_call_logs(pool: &SqlitePool) -> Result<i64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `count_call_logs_by_model` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:192:14
[INFO] [stdout]     |
[INFO] [stdout] 192 | pub async fn count_call_logs_by_model(pool: &SqlitePool, model_id: &str) -> Result<i64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CallLogStats` is never constructed
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:202:12
[INFO] [stdout]     |
[INFO] [stdout] 202 | pub struct CallLogStats {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_api_key_with_cache` is never used
[INFO] [stdout]   --> src/llm_api/utils/api_key_check.rs:19:14
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub async fn get_api_key_with_cache(provider: &str, id: &str) -> Result<Option<String>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_with_cache` is never used
[INFO] [stdout]   --> src/llm_api/utils/model_check.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub async fn get_model_with_cache(provider: &str, name: &str) -> Result<Option<Model>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ToolCall` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/msg_structure.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct ToolCall {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Message` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/msg_structure.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct Message {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Function` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/msg_structure.rs:47:12
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub struct Function {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/utils/msg_structure.rs:57:12
[INFO] [stdout]     |
[INFO] [stdout]  55 | impl Message {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout]  56 |     /// 创建系统消息
[INFO] [stdout]  57 |     pub fn system(content: String) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  69 |     pub fn user(content: String) -> Self {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout]  81 |     pub fn assistant(content: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn tool(content: String, tool_name: String) -> Self {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |     pub fn with_images(mut self, images: Vec<String>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub fn with_thinking(mut self, thinking: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 117 |     pub fn with_tool_calls(mut self, tool_calls: Vec<ToolCall>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Tool` is never constructed
[INFO] [stdout]  --> src/llm_api/utils/tool_structure.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Tool {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ToolFunction` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/tool_structure.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct ToolFunction {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ChatRequestTrait` is never used
[INFO] [stdout]   --> src/llm_api/utils/chat_traits.rs:15:11
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub trait ChatRequestTrait {
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ChatResponseTrait` is never used
[INFO] [stdout]   --> src/llm_api/utils/chat_traits.rs:71:11
[INFO] [stdout]    |
[INFO] [stdout] 71 | pub trait ChatResponseTrait {
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PerformanceSummary` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:130:12
[INFO] [stdout]     |
[INFO] [stdout] 130 | pub struct PerformanceSummary {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `empty`, `has_data`, and `format` are never used
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:143:12
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl PerformanceSummary {
[INFO] [stdout]     | ----------------------- associated items in this implementation
[INFO] [stdout] 142 |     /// 创建空的性能摘要
[INFO] [stdout] 143 |     pub fn empty() -> Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 153 |     pub fn has_data(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 160 |     pub fn format(&self) -> String {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ChatClientTrait` is never used
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:192:11
[INFO] [stdout]     |
[INFO] [stdout] 192 | pub trait ChatClientTrait {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ChatRequestBuilder` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:213:12
[INFO] [stdout]     |
[INFO] [stdout] 213 | pub struct ChatRequestBuilder {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:223:12
[INFO] [stdout]     |
[INFO] [stdout] 221 | impl ChatRequestBuilder {
[INFO] [stdout]     | ----------------------- associated items in this implementation
[INFO] [stdout] 222 |     /// 创建新的构建器
[INFO] [stdout] 223 |     pub fn new(model: String) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 234 |     pub fn messages(mut self, messages: Vec<Message>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 240 |     pub fn add_message(mut self, message: Message) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     pub fn system(mut self, content: String) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 252 |     pub fn user(mut self, content: String) -> Self {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 258 |     pub fn assistant(mut self, content: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 264 |     pub fn stream(mut self, stream: bool) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 270 |     pub fn options(mut self, options: HashMap<String, Value>) -> Self {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 276 |     pub fn format(mut self, format: String) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 282 |     pub fn build_fields(self) -> (String, Vec<Message>, Option<bool>, Option<HashMap<String, Value>>, Option<String>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TimeoutConfig` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/client.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct TimeoutConfig {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_request_timeout`, and `with_connect_timeout` are never used
[INFO] [stdout]   --> src/llm_api/utils/client.rs:43:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | impl TimeoutConfig {
[INFO] [stdout]    | ------------------ associated items in this implementation
[INFO] [stdout] 43 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn with_request_timeout(mut self, timeout: Duration) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn with_connect_timeout(mut self, timeout: Duration) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RetryConfig` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/client.rs:62:12
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub struct RetryConfig {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_max_attempts`, and `with_base_delay` are never used
[INFO] [stdout]   --> src/llm_api/utils/client.rs:85:12
[INFO] [stdout]    |
[INFO] [stdout] 84 | impl RetryConfig {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 85 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 89 |     pub fn with_max_attempts(mut self, attempts: u32) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub fn with_base_delay(mut self, delay: Duration) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientConfig` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client.rs:104:12
[INFO] [stdout]     |
[INFO] [stdout] 104 | pub struct ClientConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_timeout`, `with_retry`, `add_header`, and `with_user_agent` are never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:127:12
[INFO] [stdout]     |
[INFO] [stdout] 126 | impl ClientConfig {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout] 127 |     pub fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 131 |     pub fn with_timeout(mut self, timeout: TimeoutConfig) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 136 |     pub fn with_retry(mut self, retry: RetryConfig) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 141 |     pub fn add_header(mut self, key: String, value: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 146 |     pub fn with_user_agent(mut self, user_agent: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ClientError` is never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:156:10
[INFO] [stdout]     |
[INFO] [stdout] 156 | pub enum ClientError {
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RequestContext` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client.rs:207:12
[INFO] [stdout]     |
[INFO] [stdout] 207 | pub struct RequestContext {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:232:12
[INFO] [stdout]     |
[INFO] [stdout] 230 | impl RequestContext {
[INFO] [stdout]     | ------------------- associated items in this implementation
[INFO] [stdout] 231 |     /// 创建新的请求上下文
[INFO] [stdout] 232 |     pub fn new(url: &str, max_attempts: u32, is_stream: bool) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 249 |     pub fn set_model_id(&mut self, model_id: String) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 254 |     pub fn add_tokens(&mut self, tokens: i64) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 259 |     pub fn start_retry(&mut self, reason: String) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 266 |     pub fn total_elapsed(&self) -> Duration {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 271 |     pub fn attempt_elapsed(&self) -> Duration {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 276 |     pub fn is_final_attempt(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientMetrics` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client.rs:283:12
[INFO] [stdout]     |
[INFO] [stdout] 283 | pub struct ClientMetrics {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BaseClient` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client.rs:304:12
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub struct BaseClient {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:315:12
[INFO] [stdout]     |
[INFO] [stdout] 313 | impl BaseClient {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] 314 |     /// 创建新的基础客户端
[INFO] [stdout] 315 |     pub fn new(config: ClientConfig) -> Result<Self, ClientError> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 320 |     pub fn new_with_client(config: ClientConfig, custom_client: Option<HttpClient>) -> Result<Self, ClientError> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 355 |     pub fn new_default() -> Result<Self, ClientError> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 362 |     pub fn http_client(&self) -> &HttpClient {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 367 |     pub fn config(&self) -> &ClientConfig {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 372 |     pub fn metrics(&self) -> ClientMetrics {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 377 |     pub async fn post<T>(&self, url: &str, body: T) -> Result<Response, ClientError>
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 515 |     pub async fn post_stream<T, F>(&self, url: &str, body: T, mut callback: F) -> Result<(), ClientError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 724 |     fn calculate_backoff_delay(&self, attempt: u32) -> Duration {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 739 |     fn should_retry(&self, error: &ClientError, _attempt: u32) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 754 |     fn update_success_metrics(&self, response_time: Duration) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 780 |     fn update_failure_metrics(&self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 788 |     fn log_request_start(&self, ctx: &RequestContext) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 799 |     fn log_retry_attempt(&self, ctx: &RequestContext, delay: Duration) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 813 |     fn log_request_success(&self, ctx: &RequestContext) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 825 |     fn log_request_failure(&self, ctx: &RequestContext, error: &ClientError) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 838 |     fn log_network_error(&self, ctx: &RequestContext, error: &reqwest::Error) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 859 |     fn log_timeout_error(&self, ctx: &RequestContext, timeout_duration: Duration) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 872 |     fn log_api_error(&self, ctx: &RequestContext, message: &str, status_code: Option<u16>) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 885 |     fn log_retry_exhausted(&self, ctx: &RequestContext, final_error: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 898 |     async fn create_call_record(&self, ctx: &RequestContext, status_code: i64, error_message: Option<String>) {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `LLMClientTrait` is never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:942:11
[INFO] [stdout]     |
[INFO] [stdout] 942 | pub trait LLMClientTrait {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientPool` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct ClientPool<T> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `acquire`, and `size` are never used
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl<T> ClientPool<T> {
[INFO] [stdout]    | --------------------- associated items in this implementation
[INFO] [stdout] 22 |     pub fn new(clients: Vec<T>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub async fn acquire(&self) -> ClientGuard<T> {
[INFO] [stdout]    |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub fn size(&self) -> usize {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientGuard` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:50:12
[INFO] [stdout]    |
[INFO] [stdout] 50 | pub struct ClientGuard<T> {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `lock` is never used
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:56:18
[INFO] [stdout]    |
[INFO] [stdout] 55 | impl<T> ClientGuard<T> {
[INFO] [stdout]    | ---------------------- method in this implementation
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<T> {
[INFO] [stdout]    |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DynamicAliClient` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:62:12
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub struct DynamicAliClient {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `chat_with_auto_key`, and `chat_stream_with_auto_key` are never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:68:12
[INFO] [stdout]     |
[INFO] [stdout]  67 | impl DynamicAliClient {
[INFO] [stdout]     | --------------------- associated items in this implementation
[INFO] [stdout]  68 |     pub fn new() -> Result<Self> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  81 |     pub async fn chat_with_auto_key(&self, request: AliChatRequest) -> Result<AliChatResponse, AliError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 128 |     pub async fn chat_stream_with_auto_key<F>(&self, request: AliChatRequest, callback: F) -> Result<(), AliError>
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GlobalAliClientPool` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:163:12
[INFO] [stdout]     |
[INFO] [stdout] 163 | pub struct GlobalAliClientPool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `init`, `chat`, `chat_stream`, and `size` are never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:169:18
[INFO] [stdout]     |
[INFO] [stdout] 167 | impl GlobalAliClientPool {
[INFO] [stdout]     | ------------------------ associated items in this implementation
[INFO] [stdout] 168 |     /// 初始化全局客户端池
[INFO] [stdout] 169 |     pub async fn init(pool_size: usize) -> Result<Self> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 194 |     pub async fn chat(&self, request: AliChatRequest) -> Result<AliChatResponse, AliError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 201 |     pub async fn chat_stream<F>(&self, request: AliChatRequest, callback: F) -> Result<(), AliError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 211 |     pub fn size(&self) -> usize {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `GLOBAL_ALI_POOL` is never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:217:8
[INFO] [stdout]     |
[INFO] [stdout] 217 | static GLOBAL_ALI_POOL: OnceCell<GlobalAliClientPool> = OnceCell::const_new();
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `init_ali_client_pool` is never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:220:14
[INFO] [stdout]     |
[INFO] [stdout] 220 | pub async fn init_ali_client_pool(pool_size: usize) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_ali_client_pool` is never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:228:14
[INFO] [stdout]     |
[INFO] [stdout] 228 | pub async fn get_ali_client_pool() -> Result<&'static GlobalAliClientPool> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliChatRequest` is never constructed
[INFO] [stdout]   --> src/llm_api/ali/client.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct AliChatRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_max_tokens`, `with_temperature`, `with_top_p`, `with_stop`, and `with_incremental_output` are never used
[INFO] [stdout]   --> src/llm_api/ali/client.rs:55:12
[INFO] [stdout]    |
[INFO] [stdout] 53 | impl AliChatRequest {
[INFO] [stdout]    | ------------------- associated items in this implementation
[INFO] [stdout] 54 |     /// 创建新的聊天请求
[INFO] [stdout] 55 |     pub fn new(model: String, messages: Vec<Message>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 71 |     pub fn with_max_tokens(mut self, max_tokens: u32) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub fn with_temperature(mut self, temperature: f32) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub fn with_top_p(mut self, top_p: f32) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 89 |     pub fn with_stop(mut self, stop: Vec<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 95 |     pub fn with_incremental_output(mut self, incremental: bool) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliUsage` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:245:12
[INFO] [stdout]     |
[INFO] [stdout] 245 | pub struct AliUsage {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliPromptTokensDetails` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:259:12
[INFO] [stdout]     |
[INFO] [stdout] 259 | pub struct AliPromptTokensDetails {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliChoice` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:267:12
[INFO] [stdout]     |
[INFO] [stdout] 267 | pub struct AliChoice {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliChatResponse` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:281:12
[INFO] [stdout]     |
[INFO] [stdout] 281 | pub struct AliChatResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliStreamResponse` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:331:12
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub struct AliStreamResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliStreamChoice` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:349:12
[INFO] [stdout]     |
[INFO] [stdout] 349 | pub struct AliStreamChoice {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliDelta` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:361:12
[INFO] [stdout]     |
[INFO] [stdout] 361 | pub struct AliDelta {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `AliError` is never used
[INFO] [stdout]    --> src/llm_api/ali/client.rs:372:10
[INFO] [stdout]     |
[INFO] [stdout] 372 | pub enum AliError {
[INFO] [stdout]     |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliClient` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:415:12
[INFO] [stdout]     |
[INFO] [stdout] 415 | pub struct AliClient {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/ali/client.rs:426:15
[INFO] [stdout]     |
[INFO] [stdout] 424 | impl AliClient {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 425 |     /// DashScope API 的默认基础 URL
[INFO] [stdout] 426 |     pub const DEFAULT_BASE_URL: &'static str = "https://dashscope.aliyuncs.com";
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 429 |     pub fn new(api_key: String) -> Result<Self> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 434 |     pub fn new_with_base_url(api_key: String, base_url: String) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 443 |     pub fn new_with_config(api_key: String, base_url: String, mut config: ClientConfig) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 459 |     pub fn new_with_client(api_key: String, base_url: String, mut config: ClientConfig, client: Client) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 475 |     pub async fn chat(&self, mut request: AliChatRequest) -> Result<AliChatResponse, AliError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 508 |     pub async fn chat_stream<F>(&self, mut request: AliChatRequest, mut callback: F) -> Result<(), AliError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 554 |     pub fn api_key(&self) -> &str {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 559 |     pub fn base_url(&self) -> &str {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaChatRequest` is never constructed
[INFO] [stdout]   --> src/llm_api/ollama/client.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct OllamaChatRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_tools`, and `add_tool` are never used
[INFO] [stdout]   --> src/llm_api/ollama/client.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | impl OllamaChatRequest {
[INFO] [stdout]    | ---------------------- associated items in this implementation
[INFO] [stdout] 43 |     /// 创建新的聊天请求
[INFO] [stdout] 44 |     pub fn new(model: String, messages: Vec<Message>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     pub fn with_tools(mut self, tools: Vec<Tool>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     pub fn add_tool(mut self, tool: Tool) -> Self {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaChatResponse` is never constructed
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:119:12
[INFO] [stdout]     |
[INFO] [stdout] 119 | pub struct OllamaChatResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `OllamaError` is never used
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:182:10
[INFO] [stdout]     |
[INFO] [stdout] 182 | pub enum OllamaError {
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaClient` is never constructed
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:223:12
[INFO] [stdout]     |
[INFO] [stdout] 223 | pub struct OllamaClient {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:232:12
[INFO] [stdout]     |
[INFO] [stdout] 230 | impl OllamaClient {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout] 231 |     /// 创建新的 Ollama 客户端
[INFO] [stdout] 232 |     pub fn new(base_url: String) -> Result<Self> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 237 |     pub fn new_with_config(base_url: String, config: ClientConfig) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 247 |     pub fn new_with_client(base_url: String, config: ClientConfig, client: Client) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 257 |     pub async fn chat(&self, mut request: OllamaChatRequest) -> Result<OllamaChatResponse, OllamaError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 281 |     pub async fn chat_stream<F>(&self, mut request: OllamaChatRequest, mut callback: F) -> Result<(), OllamaError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 318 |     pub async fn list_models(&self) -> Result<Vec<String>, OllamaError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 347 |     pub async fn is_model_available(&self, model_name: &str) -> Result<bool, OllamaError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Provider` is never used
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:28:10
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub enum Provider {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DispatchRequest` is never constructed
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:38:12
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub struct DispatchRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DispatchResponse` is never constructed
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:56:12
[INFO] [stdout]    |
[INFO] [stdout] 56 | pub struct DispatchResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TokenUsage` is never constructed
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub struct TokenUsage {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `LLMClientAdapter` is never used
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:77:11
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub trait LLMClientAdapter: Send + Sync {
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `LLMError` is never used
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:86:10
[INFO] [stdout]    |
[INFO] [stdout] 86 | pub enum LLMError {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaAdapter` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:129:12
[INFO] [stdout]     |
[INFO] [stdout] 129 | pub struct OllamaAdapter {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:134:12
[INFO] [stdout]     |
[INFO] [stdout] 133 | impl OllamaAdapter {
[INFO] [stdout]     | ------------------ associated function in this implementation
[INFO] [stdout] 134 |     pub fn new(client: OllamaClient) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliAdapter` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:216:12
[INFO] [stdout]     |
[INFO] [stdout] 216 | pub struct AliAdapter {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:221:12
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl AliAdapter {
[INFO] [stdout]     | --------------- associated function in this implementation
[INFO] [stdout] 221 |     pub fn new(client: AliClient) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliPoolAdapter` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:227:12
[INFO] [stdout]     |
[INFO] [stdout] 227 | pub struct AliPoolAdapter {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:232:12
[INFO] [stdout]     |
[INFO] [stdout] 231 | impl AliPoolAdapter {
[INFO] [stdout]     | ------------------- associated function in this implementation
[INFO] [stdout] 232 |     pub fn new(pool: Arc<ClientPool<DynamicAliClient>>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LLMDispatcher` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:401:12
[INFO] [stdout]     |
[INFO] [stdout] 401 | pub struct LLMDispatcher {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DispatchConfig` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:407:12
[INFO] [stdout]     |
[INFO] [stdout] 407 | pub struct DispatchConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:428:12
[INFO] [stdout]     |
[INFO] [stdout] 427 | impl LLMDispatcher {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout] 428 |     pub fn new(config: Option<DispatchConfig>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 436 |     pub async fn new_with_database(config: Option<DispatchConfig>, db_url: &str, init_sql_path: &str) -> Result<Self, Box<dyn std::...
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 483 |     pub async fn register_ali_pool(&self, pool_size: usize) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 503 |     pub async fn register_client(&self, client: Box<dyn LLMClientAdapter>) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 510 |     pub async fn register_clients(&self, clients: Vec<Box<dyn LLMClientAdapter>>) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 517 |     pub async fn dispatch(&self, mut request: DispatchRequest) -> Result<DispatchResponse, LLMError> {
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 537 |     pub async fn dispatch_stream(&self, mut request: DispatchRequest) -> Result<tokio::sync::mpsc::Receiver<Result<String, LLMError...
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 549 |     pub async fn list_models(&self, provider: Option<Provider>) -> HashMap<Provider, Vec<String>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 567 |     pub async fn is_provider_available(&self, provider: &Provider) -> bool {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 573 |     async fn dispatch_internal(&self, request: &DispatchRequest) -> Result<DispatchResponse, LLMError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 604 |     async fn try_fallback(&self, mut request: DispatchRequest, original_error: LLMError) -> Result<DispatchResponse, LLMError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 621 |     fn apply_defaults(&self, request: &mut DispatchRequest) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 634 |     fn validate_request(&self, request: &DispatchRequest) -> Result<(), LLMError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_stream`, `with_temperature`, `with_max_tokens`, `with_top_p`, and `with_stop` are never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:655:12
[INFO] [stdout]     |
[INFO] [stdout] 654 | impl DispatchRequest {
[INFO] [stdout]     | -------------------- associated items in this implementation
[INFO] [stdout] 655 |     pub fn new(provider: Provider, model: String, messages: Vec<Message>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 673 |     pub fn with_stream(mut self, stream: bool) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 678 |     pub fn with_temperature(mut self, temperature: f32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 683 |     pub fn with_max_tokens(mut self, max_tokens: u32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 688 |     pub fn with_top_p(mut self, top_p: f32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 693 |     pub fn with_stop(mut self, stop: Vec<String>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `json_format` is never read
[INFO] [stdout]   --> src/logger.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub struct LogConfig {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub json_format: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `LogConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `init_prod_logger` is never used
[INFO] [stdout]    --> src/logger.rs:131:8
[INFO] [stdout]     |
[INFO] [stdout] 131 | pub fn init_prod_logger() -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:56:23
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<T> {
[INFO] [stdout]    |                       ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<'_, T> {
[INFO] [stdout]    |                                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 06s
[INFO] running `Command { std: "docker" "inspect" "d80a6c0787ef11720bc0c69b19586cd8dc3dbac9708bb15d317e2703a5768e10", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d80a6c0787ef11720bc0c69b19586cd8dc3dbac9708bb15d317e2703a5768e10", kill_on_drop: false }`
[INFO] [stdout] d80a6c0787ef11720bc0c69b19586cd8dc3dbac9708bb15d317e2703a5768e10
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 28f61d651d68b1cd67b4e526fb36c3dbc7c083b94c574554975123a4855747af
[INFO] running `Command { std: "docker" "start" "-a" "28f61d651d68b1cd67b4e526fb36c3dbc7c083b94c574554975123a4855747af", kill_on_drop: false }`
[INFO] [stderr]    Compiling tokio v1.47.1
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling regex-syntax v0.8.6
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling assert-json-diff v2.0.2
[INFO] [stderr]    Compiling similar v2.7.0
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling tempfile v3.21.0
[INFO] [stderr]    Compiling uuid v1.18.1
[INFO] [stderr]    Compiling rand_core v0.9.3
[INFO] [stderr]    Compiling hashlink v0.8.4
[INFO] [stderr]    Compiling moka v0.12.10
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling sqlx-core v0.7.4
[INFO] [stderr]    Compiling rand v0.9.2
[INFO] [stderr]    Compiling async-stream v0.3.6
[INFO] [stderr]    Compiling colored v3.0.0
[INFO] [stderr]    Compiling regex-automata v0.4.10
[INFO] [stderr]    Compiling sqlx-sqlite v0.7.4
[INFO] [stderr]    Compiling tokio-util v0.7.16
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling tracing-subscriber v0.3.20
[INFO] [stderr]    Compiling regex v1.11.2
[INFO] [stderr]    Compiling tokio-test v0.4.4
[INFO] [stderr]    Compiling h2 v0.4.12
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling sqlx-macros-core v0.7.4
[INFO] [stderr]    Compiling tracing-appender v0.2.3
[INFO] [stderr]    Compiling sqlx-macros v0.7.4
[INFO] [stderr]    Compiling tower-http v0.5.2
[INFO] [stderr]    Compiling sqlx v0.7.4
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling hyper v1.7.0
[INFO] [stderr]    Compiling hyper-util v0.1.16
[INFO] [stderr]    Compiling axum v0.7.9
[INFO] [stderr]    Compiling mockito v1.7.0
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling project_rust_learn v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `warn`
[INFO] [stdout]  --> src/dao/model/preload.rs:5:35
[INFO] [stdout]   |
[INFO] [stdout] 5 | use tracing::{info, error, debug, warn};
[INFO] [stdout]   |                                   ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `verify_key_integrity`
[INFO] [stdout]  --> src/dao/provider_key_pool/provider_key_pool.rs:3:62
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::dao::provider_key_pool::crypto::{process_api_key, verify_key_integrity};
[INFO] [stdout]   |                                                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `delete` and `post`
[INFO] [stdout]  --> src/web/server.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 |     routing::{get, post, put, delete},
[INFO] [stdout]   |                    ^^^^       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sqlx::SqlitePool`
[INFO] [stdout]  --> src/web/handlers/api_key_handler.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use sqlx::SqlitePool;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `decrypt_api_key` and `process_api_key`
[INFO] [stdout]   --> src/web/handlers/api_key_handler.rs:24:45
[INFO] [stdout]    |
[INFO] [stdout] 24 | use crate::dao::provider_key_pool::crypto::{process_api_key, decrypt_api_key};
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `warn`
[INFO] [stdout]  --> src/dao/model/preload.rs:5:35
[INFO] [stdout]   |
[INFO] [stdout] 5 | use tracing::{info, error, debug, warn};
[INFO] [stdout]   |                                   ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `verify_key_integrity`
[INFO] [stdout]  --> src/dao/provider_key_pool/provider_key_pool.rs:3:62
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::dao::provider_key_pool::crypto::{process_api_key, verify_key_integrity};
[INFO] [stdout]   |                                                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `delete` and `post`
[INFO] [stdout]  --> src/web/server.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 |     routing::{get, post, put, delete},
[INFO] [stdout]   |                    ^^^^       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sqlx::SqlitePool`
[INFO] [stdout]  --> src/web/handlers/api_key_handler.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use sqlx::SqlitePool;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `decrypt_api_key` and `process_api_key`
[INFO] [stdout]   --> src/web/handlers/api_key_handler.rs:24:45
[INFO] [stdout]    |
[INFO] [stdout] 24 | use crate::dao::provider_key_pool::crypto::{process_api_key, decrypt_api_key};
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `base_client` and `base_url` are never read
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:63:5
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub struct DynamicAliClient {
[INFO] [stdout]    |            ---------------- fields in this struct
[INFO] [stdout] 63 |     base_client: BaseClient,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 64 |     base_url: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:56:23
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<T> {
[INFO] [stdout]    |                       ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<'_, T> {
[INFO] [stdout]    |                                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `base_client` and `base_url` are never read
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:63:5
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub struct DynamicAliClient {
[INFO] [stdout]    |            ---------------- fields in this struct
[INFO] [stdout] 63 |     base_client: BaseClient,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 64 |     base_url: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:56:23
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<T> {
[INFO] [stdout]    |                       ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<'_, T> {
[INFO] [stdout]    |                                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_model`, `delete_model`, `get_model_by_id`, and `update_model`
[INFO] [stdout]  --> src/dao/model/mod.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub use model::{Model, create_model, list_models, update_model, delete_model, get_model_by_id, get_model_by_provider_and_name};
[INFO] [stdout]   |                        ^^^^^^^^^^^^               ^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `warn`
[INFO] [stdout]  --> src/dao/model/preload.rs:5:35
[INFO] [stdout]   |
[INFO] [stdout] 5 | use tracing::{info, error, debug, warn};
[INFO] [stdout]   |                                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `provider::*`
[INFO] [stdout]  --> src/dao/provider/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use provider::*;
[INFO] [stdout]   |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `verify_key_integrity`
[INFO] [stdout]  --> src/dao/provider_key_pool/provider_key_pool.rs:3:62
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::dao::provider_key_pool::crypto::{process_api_key, verify_key_integrity};
[INFO] [stdout]   |                                                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_provider_key_pool_from_raw_key`, `create_provider_key_pool`, `delete_provider_key_pool`, `list_active_provider_key_pools`, `list_provider_key_pools_by_provider`, `toggle_provider_key_pool_active`, `update_key_pool_usage`, and `update_provider_key_pool`
[INFO] [stdout]   --> src/dao/provider_key_pool/mod.rs:7:5
[INFO] [stdout]    |
[INFO] [stdout]  7 |     create_provider_key_pool, 
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 10 |     list_provider_key_pools_by_provider,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |     list_active_provider_key_pools,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     update_provider_key_pool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     update_key_pool_usage,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     delete_provider_key_pool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     toggle_provider_key_pool_active,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |     create_provider_key_pool_from_raw_key
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CachedProviderKeyPool` and `insert_cached_provider_key_pool_to_cache`
[INFO] [stdout]   --> src/dao/provider_key_pool/mod.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 |     CachedProviderKeyPool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     insert_cached_provider_key_pool_to_cache,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `decrypt_api_key`, `encrypt_api_key`, `generate_key_hash`, `process_api_key`, and `verify_key_integrity`
[INFO] [stdout]   --> src/dao/provider_key_pool/mod.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     generate_key_hash,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 35 |     encrypt_api_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 36 |     decrypt_api_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 37 |     process_api_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 38 |     verify_key_integrity
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SystemConfig`, `create_system_config`, `delete_system_config`, `delete_system_configs_by_category`, `get_system_config_by_id`, `get_system_config_by_key`, `get_system_config_value`, `list_encrypted_system_configs`, `list_system_configs_by_category`, `list_system_configs`, `system_config_exists`, `update_system_config_encryption`, `update_system_config_value`, and `update_system_config`
[INFO] [stdout]   --> src/dao/system_config/mod.rs:4:5
[INFO] [stdout]    |
[INFO] [stdout]  4 |     SystemConfig,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]  5 |     create_system_config,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  6 |     get_system_config_by_id,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  7 |     get_system_config_by_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |     list_system_configs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  9 |     list_system_configs_by_category,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10 |     list_encrypted_system_configs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |     update_system_config,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     update_system_config_value,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     update_system_config_encryption,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     delete_system_config,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     delete_system_configs_by_category,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |     system_config_exists,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     get_system_config_value
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CallLogStats`, `count_call_logs_by_model`, `count_call_logs`, `delete_call_log`, `delete_call_logs_by_model`, `delete_old_call_logs`, `get_call_log_by_id`, `get_call_logs_stats_by_model`, `get_call_logs_stats`, `list_call_logs_by_date_range`, `list_call_logs_by_model`, `list_call_logs_by_status`, `list_call_logs_paginated`, `list_call_logs`, `list_error_call_logs`, and `update_call_log`
[INFO] [stdout]   --> src/dao/call_log/mod.rs:5:5
[INFO] [stdout]    |
[INFO] [stdout]  5 |     CallLogStats,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]  6 |     create_call_log,
[INFO] [stdout]  7 |     get_call_log_by_id,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |     list_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]  9 |     list_call_logs_paginated,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10 |     list_call_logs_by_model,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |     list_call_logs_by_status,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     list_error_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     list_call_logs_by_date_range,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     get_call_logs_stats,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     get_call_logs_stats_by_model,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |     update_call_log,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     delete_call_log,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 18 |     delete_call_logs_by_model,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 19 |     delete_old_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 20 |     count_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 21 |     count_call_logs_by_model
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `get_active_key_count`, `get_api_key_round_robin`, `get_round_robin_counter`, `reload_provider_api_keys`, and `reset_round_robin_counter`
[INFO] [stdout]   --> src/llm_api/utils/mod.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     get_api_key_round_robin,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     reload_provider_api_keys,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     reset_round_robin_counter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     get_round_robin_counter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     get_active_key_count
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `warn`
[INFO] [stdout]  --> src/main.rs:8:28
[INFO] [stdout]   |
[INFO] [stdout] 8 | use tracing::{info, error, warn, debug};
[INFO] [stdout]   |                            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::llm_api::ollama::client`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::llm_api::ollama::client;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_model`, `delete_model`, `get_model_by_id`, and `update_model`
[INFO] [stdout]  --> src/dao/model/mod.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub use model::{Model, create_model, list_models, update_model, delete_model, get_model_by_id, get_model_by_provider_and_name};
[INFO] [stdout]   |                        ^^^^^^^^^^^^               ^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `warn`
[INFO] [stdout]  --> src/dao/model/preload.rs:5:35
[INFO] [stdout]   |
[INFO] [stdout] 5 | use tracing::{info, error, debug, warn};
[INFO] [stdout]   |                                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `provider::*`
[INFO] [stdout]  --> src/dao/provider/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use provider::*;
[INFO] [stdout]   |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `verify_key_integrity`
[INFO] [stdout]  --> src/dao/provider_key_pool/provider_key_pool.rs:3:62
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::dao::provider_key_pool::crypto::{process_api_key, verify_key_integrity};
[INFO] [stdout]   |                                                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_provider_key_pool_from_raw_key`, `create_provider_key_pool`, `delete_provider_key_pool`, `list_active_provider_key_pools`, `list_provider_key_pools_by_provider`, `toggle_provider_key_pool_active`, `update_key_pool_usage`, and `update_provider_key_pool`
[INFO] [stdout]   --> src/dao/provider_key_pool/mod.rs:7:5
[INFO] [stdout]    |
[INFO] [stdout]  7 |     create_provider_key_pool, 
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 10 |     list_provider_key_pools_by_provider,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |     list_active_provider_key_pools,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     update_provider_key_pool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     update_key_pool_usage,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     delete_provider_key_pool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     toggle_provider_key_pool_active,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |     create_provider_key_pool_from_raw_key
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CachedProviderKeyPool` and `insert_cached_provider_key_pool_to_cache`
[INFO] [stdout]   --> src/dao/provider_key_pool/mod.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 |     CachedProviderKeyPool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     insert_cached_provider_key_pool_to_cache,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `decrypt_api_key`, `encrypt_api_key`, `generate_key_hash`, `process_api_key`, and `verify_key_integrity`
[INFO] [stdout]   --> src/dao/provider_key_pool/mod.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     generate_key_hash,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 35 |     encrypt_api_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 36 |     decrypt_api_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 37 |     process_api_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 38 |     verify_key_integrity
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SystemConfig`, `create_system_config`, `delete_system_config`, `delete_system_configs_by_category`, `get_system_config_by_id`, `get_system_config_by_key`, `get_system_config_value`, `list_encrypted_system_configs`, `list_system_configs_by_category`, `list_system_configs`, `system_config_exists`, `update_system_config_encryption`, `update_system_config_value`, and `update_system_config`
[INFO] [stdout]   --> src/dao/system_config/mod.rs:4:5
[INFO] [stdout]    |
[INFO] [stdout]  4 |     SystemConfig,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]  5 |     create_system_config,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  6 |     get_system_config_by_id,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  7 |     get_system_config_by_key,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |     list_system_configs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  9 |     list_system_configs_by_category,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10 |     list_encrypted_system_configs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |     update_system_config,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     update_system_config_value,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     update_system_config_encryption,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     delete_system_config,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     delete_system_configs_by_category,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |     system_config_exists,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     get_system_config_value
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CallLogStats`, `count_call_logs_by_model`, `count_call_logs`, `delete_call_log`, `delete_call_logs_by_model`, `delete_old_call_logs`, `get_call_log_by_id`, `get_call_logs_stats_by_model`, `get_call_logs_stats`, `list_call_logs_by_date_range`, `list_call_logs_by_model`, `list_call_logs_by_status`, `list_call_logs_paginated`, `list_call_logs`, `list_error_call_logs`, and `update_call_log`
[INFO] [stdout]   --> src/dao/call_log/mod.rs:5:5
[INFO] [stdout]    |
[INFO] [stdout]  5 |     CallLogStats,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]  6 |     create_call_log,
[INFO] [stdout]  7 |     get_call_log_by_id,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |     list_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]  9 |     list_call_logs_paginated,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10 |     list_call_logs_by_model,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |     list_call_logs_by_status,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     list_error_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     list_call_logs_by_date_range,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     get_call_logs_stats,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     get_call_logs_stats_by_model,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |     update_call_log,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     delete_call_log,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 18 |     delete_call_logs_by_model,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 19 |     delete_old_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 20 |     count_call_logs,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 21 |     count_call_logs_by_model
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `get_active_key_count`, `get_api_key_round_robin`, `get_round_robin_counter`, `reload_provider_api_keys`, and `reset_round_robin_counter`
[INFO] [stdout]   --> src/llm_api/utils/mod.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     get_api_key_round_robin,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     reload_provider_api_keys,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     reset_round_robin_counter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     get_round_robin_counter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     get_active_key_count
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `warn`
[INFO] [stdout]  --> src/main.rs:8:28
[INFO] [stdout]   |
[INFO] [stdout] 8 | use tracing::{info, error, warn, debug};
[INFO] [stdout]   |                            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::llm_api::ollama::client`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::llm_api::ollama::client;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_or_load` and `invalidate` are never used
[INFO] [stdout]   --> src/dao/cache/cache.rs:32:18
[INFO] [stdout]    |
[INFO] [stdout] 10 | / impl<K, V> CacheService<K, V>
[INFO] [stdout] 11 | | where
[INFO] [stdout] 12 | |     K: std::hash::Hash + Eq + Clone + Send + Sync + 'static,
[INFO] [stdout] 13 | |     V: Clone + Send + Sync + 'static,
[INFO] [stdout]    | |_____________________________________- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |       pub async fn get_or_load<F, Fut>(&self, key: K, loader: F) -> V
[INFO] [stdout]    |                    ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 48 |       pub async fn invalidate(&self, key: &K) {
[INFO] [stdout]    |                    ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_model` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:25:14
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub async fn create_model(pool: &SqlitePool, model: &Model) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_by_id` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:51:14
[INFO] [stdout]    |
[INFO] [stdout] 51 | pub async fn get_model_by_id(pool: &SqlitePool, id: &str) -> Result<Option<Model>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_by_provider_and_name` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:59:14
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub async fn get_model_by_provider_and_name(pool: &SqlitePool, provider: &str, name: &str) -> Result<Option<Model>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_model` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:77:14
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub async fn update_model(pool: &SqlitePool, model: &Model) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_model` is never used
[INFO] [stdout]    --> src/dao/model/model.rs:114:14
[INFO] [stdout]     |
[INFO] [stdout] 114 | pub async fn delete_model(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_from_cache` is never used
[INFO] [stdout]   --> src/dao/model/preload.rs:45:14
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub async fn get_model_from_cache(provider: &str, name: &str) -> Option<Model> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `insert_model_to_cache` is never used
[INFO] [stdout]   --> src/dao/model/preload.rs:67:14
[INFO] [stdout]    |
[INFO] [stdout] 67 | pub async fn insert_model_to_cache(model: &Model) -> Result<()> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Provider` is never constructed
[INFO] [stdout]  --> src/dao/provider/provider.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Provider {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub async fn create_provider(pool: &SqlitePool, provider: &Provider) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_provider_by_id` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn get_provider_by_id(pool: &SqlitePool, id: &str) -> Result<Option<Provider>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_provider_by_name` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:44:14
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub async fn get_provider_by_name(pool: &SqlitePool, name: &str) -> Result<Option<Provider>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_providers` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:53:14
[INFO] [stdout]    |
[INFO] [stdout] 53 | pub async fn get_all_providers(pool: &SqlitePool) -> Result<Vec<Provider>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:61:14
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub async fn update_provider(pool: &SqlitePool, id: &str, provider: &Provider) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:78:14
[INFO] [stdout]    |
[INFO] [stdout] 78 | pub async fn delete_provider(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `hard_delete_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:87:14
[INFO] [stdout]    |
[INFO] [stdout] 87 | pub async fn hard_delete_provider(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `count_models_for_provider` is never used
[INFO] [stdout]    --> src/dao/provider/provider.rs:103:14
[INFO] [stdout]     |
[INFO] [stdout] 103 | pub async fn count_models_for_provider(pool: &SqlitePool, provider_id: &str) -> Result<i64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_provider_key_pool` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn create_provider_key_pool(pool: &SqlitePool, key_pool: &ProviderKeyPool) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_provider_key_pool_by_id` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:43:14
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub async fn get_provider_key_pool_by_id(pool: &SqlitePool, id: &str) -> Result<Option<ProviderKeyPool>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_provider_key_pools_by_provider` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:60:14
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub async fn list_provider_key_pools_by_provider(pool: &SqlitePool, provider: &str) -> Result<Vec<ProviderKeyPool>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_active_provider_key_pools` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:69:14
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub async fn list_active_provider_key_pools(pool: &SqlitePool) -> Result<Vec<ProviderKeyPool>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_provider_key_pool` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:77:14
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub async fn update_provider_key_pool(pool: &SqlitePool, key_pool: &ProviderKeyPool) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_key_pool_usage` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:105:14
[INFO] [stdout]     |
[INFO] [stdout] 105 | pub async fn update_key_pool_usage(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_provider_key_pool` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:119:14
[INFO] [stdout]     |
[INFO] [stdout] 119 | pub async fn delete_provider_key_pool(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `toggle_provider_key_pool_active` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:128:14
[INFO] [stdout]     |
[INFO] [stdout] 128 | pub async fn toggle_provider_key_pool_active(pool: &SqlitePool, id: &str, is_active: bool) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_provider_key_pool_from_raw_key` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:152:14
[INFO] [stdout]     |
[INFO] [stdout] 152 | pub async fn create_provider_key_pool_from_raw_key(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `insert_provider_key_pool_to_cache` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:167:14
[INFO] [stdout]     |
[INFO] [stdout] 167 | pub async fn insert_provider_key_pool_to_cache(key_pool: &ProviderKeyPool) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `insert_cached_provider_key_pool_to_cache` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:185:14
[INFO] [stdout]     |
[INFO] [stdout] 185 | pub async fn insert_cached_provider_key_pool_to_cache(cached_key_pool: &CachedProviderKeyPool) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_api_key_round_robin` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:209:14
[INFO] [stdout]     |
[INFO] [stdout] 209 | pub async fn get_api_key_round_robin(provider: &str) -> Option<(String, String)> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reload_provider_api_keys` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:267:14
[INFO] [stdout]     |
[INFO] [stdout] 267 | pub async fn reload_provider_api_keys(pool: &SqlitePool, provider: &str) -> anyhow::Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reset_round_robin_counter` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:303:14
[INFO] [stdout]     |
[INFO] [stdout] 303 | pub async fn reset_round_robin_counter(provider: &str) {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_round_robin_counter` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:318:14
[INFO] [stdout]     |
[INFO] [stdout] 318 | pub async fn get_round_robin_counter(provider: &str) -> usize {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_active_key_count` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:332:14
[INFO] [stdout]     |
[INFO] [stdout] 332 | pub async fn get_active_key_count(provider: &str) -> usize {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_system_config` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub async fn create_system_config(pool: &SqlitePool, config: &SystemConfig) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_system_config_by_id` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn get_system_config_by_id(pool: &SqlitePool, id: &str) -> Result<Option<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_system_config_by_key` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:44:14
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub async fn get_system_config_by_key(pool: &SqlitePool, category: &str, key_name: &str) -> Result<Option<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_system_configs` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:54:14
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub async fn list_system_configs(pool: &SqlitePool) -> Result<Vec<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_system_configs_by_category` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:62:14
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub async fn list_system_configs_by_category(pool: &SqlitePool, category: &str) -> Result<Vec<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_encrypted_system_configs` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:71:14
[INFO] [stdout]    |
[INFO] [stdout] 71 | pub async fn list_encrypted_system_configs(pool: &SqlitePool) -> Result<Vec<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_system_config` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:79:14
[INFO] [stdout]    |
[INFO] [stdout] 79 | pub async fn update_system_config(pool: &SqlitePool, config: &SystemConfig) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_system_config_value` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:101:14
[INFO] [stdout]     |
[INFO] [stdout] 101 | pub async fn update_system_config_value(pool: &SqlitePool, category: &str, key_name: &str, value: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_system_config_encryption` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:118:14
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub async fn update_system_config_encryption(pool: &SqlitePool, id: &str, is_encrypted: bool, encrypted_value: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_system_config` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:136:14
[INFO] [stdout]     |
[INFO] [stdout] 136 | pub async fn delete_system_config(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_system_configs_by_category` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:145:14
[INFO] [stdout]     |
[INFO] [stdout] 145 | pub async fn delete_system_configs_by_category(pool: &SqlitePool, category: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `system_config_exists` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:154:14
[INFO] [stdout]     |
[INFO] [stdout] 154 | pub async fn system_config_exists(pool: &SqlitePool, category: &str, key_name: &str) -> Result<bool> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_system_config_value` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:164:14
[INFO] [stdout]     |
[INFO] [stdout] 164 | pub async fn get_system_config_value(pool: &SqlitePool, category: &str, key_name: &str) -> Result<Option<String>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_call_log` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub async fn create_call_log(pool: &SqlitePool, call_log: &CallLog) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_call_log_by_id` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn get_call_log_by_id(pool: &SqlitePool, id: &str) -> Result<Option<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:44:14
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub async fn list_call_logs(pool: &SqlitePool) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_paginated` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:52:14
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub async fn list_call_logs_paginated(pool: &SqlitePool, limit: i64, offset: i64) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_by_model` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:62:14
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub async fn list_call_logs_by_model(pool: &SqlitePool, model_id: &str) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_by_status` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:71:14
[INFO] [stdout]    |
[INFO] [stdout] 71 | pub async fn list_call_logs_by_status(pool: &SqlitePool, status_code: i64) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_error_call_logs` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:80:14
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub async fn list_error_call_logs(pool: &SqlitePool) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_by_date_range` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:88:14
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub async fn list_call_logs_by_date_range(pool: &SqlitePool, start_date: &str, end_date: &str) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_call_logs_stats` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:100:14
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub async fn get_call_logs_stats(pool: &SqlitePool) -> Result<CallLogStats> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_call_logs_stats_by_model` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:117:14
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub async fn get_call_logs_stats_by_model(pool: &SqlitePool, model_id: &str) -> Result<CallLogStats> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_call_log` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:135:14
[INFO] [stdout]     |
[INFO] [stdout] 135 | pub async fn update_call_log(pool: &SqlitePool, call_log: &CallLog) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_call_log` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:157:14
[INFO] [stdout]     |
[INFO] [stdout] 157 | pub async fn delete_call_log(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_call_logs_by_model` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:166:14
[INFO] [stdout]     |
[INFO] [stdout] 166 | pub async fn delete_call_logs_by_model(pool: &SqlitePool, model_id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_old_call_logs` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:175:14
[INFO] [stdout]     |
[INFO] [stdout] 175 | pub async fn delete_old_call_logs(pool: &SqlitePool, before_date: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `count_call_logs` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:184:14
[INFO] [stdout]     |
[INFO] [stdout] 184 | pub async fn count_call_logs(pool: &SqlitePool) -> Result<i64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `count_call_logs_by_model` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:192:14
[INFO] [stdout]     |
[INFO] [stdout] 192 | pub async fn count_call_logs_by_model(pool: &SqlitePool, model_id: &str) -> Result<i64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CallLogStats` is never constructed
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:202:12
[INFO] [stdout]     |
[INFO] [stdout] 202 | pub struct CallLogStats {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_api_key_with_cache` is never used
[INFO] [stdout]   --> src/llm_api/utils/api_key_check.rs:19:14
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub async fn get_api_key_with_cache(provider: &str, id: &str) -> Result<Option<String>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_with_cache` is never used
[INFO] [stdout]   --> src/llm_api/utils/model_check.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub async fn get_model_with_cache(provider: &str, name: &str) -> Result<Option<Model>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `assistant`, `tool`, `with_images`, `with_thinking`, and `with_tool_calls` are never used
[INFO] [stdout]    --> src/llm_api/utils/msg_structure.rs:81:12
[INFO] [stdout]     |
[INFO] [stdout]  55 | impl Message {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  81 |     pub fn assistant(content: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn tool(content: String, tool_name: String) -> Self {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |     pub fn with_images(mut self, images: Vec<String>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub fn with_thinking(mut self, thinking: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 117 |     pub fn with_tool_calls(mut self, tool_calls: Vec<ToolCall>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Tool` is never constructed
[INFO] [stdout]  --> src/llm_api/utils/tool_structure.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Tool {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ToolFunction` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/tool_structure.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct ToolFunction {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]   --> src/llm_api/utils/chat_traits.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub trait ChatRequestTrait {
[INFO] [stdout]    |           ---------------- methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 20 |     fn get_messages(&self) -> Vec<Message>;
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |     fn set_messages(&mut self, messages: Vec<Message>);
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 26 |     fn add_message(&mut self, message: Message);
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     fn is_stream(&self) -> Option<bool> {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     fn set_stream(&mut self, stream: bool);
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 45 |     fn set_options(&mut self, options: HashMap<String, Value>);
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 48 |     fn get_format(&self) -> Option<String> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 53 |     fn set_format(&mut self, format: String);
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ChatResponseTrait` is never used
[INFO] [stdout]   --> src/llm_api/utils/chat_traits.rs:71:11
[INFO] [stdout]    |
[INFO] [stdout] 71 | pub trait ChatResponseTrait {
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PerformanceSummary` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:130:12
[INFO] [stdout]     |
[INFO] [stdout] 130 | pub struct PerformanceSummary {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `empty`, `has_data`, and `format` are never used
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:143:12
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl PerformanceSummary {
[INFO] [stdout]     | ----------------------- associated items in this implementation
[INFO] [stdout] 142 |     /// 创建空的性能摘要
[INFO] [stdout] 143 |     pub fn empty() -> Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 153 |     pub fn has_data(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 160 |     pub fn format(&self) -> String {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ChatClientTrait` is never used
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:192:11
[INFO] [stdout]     |
[INFO] [stdout] 192 | pub trait ChatClientTrait {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ChatRequestBuilder` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:213:12
[INFO] [stdout]     |
[INFO] [stdout] 213 | pub struct ChatRequestBuilder {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:223:12
[INFO] [stdout]     |
[INFO] [stdout] 221 | impl ChatRequestBuilder {
[INFO] [stdout]     | ----------------------- associated items in this implementation
[INFO] [stdout] 222 |     /// 创建新的构建器
[INFO] [stdout] 223 |     pub fn new(model: String) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 234 |     pub fn messages(mut self, messages: Vec<Message>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 240 |     pub fn add_message(mut self, message: Message) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     pub fn system(mut self, content: String) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 252 |     pub fn user(mut self, content: String) -> Self {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 258 |     pub fn assistant(mut self, content: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 264 |     pub fn stream(mut self, stream: bool) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 270 |     pub fn options(mut self, options: HashMap<String, Value>) -> Self {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 276 |     pub fn format(mut self, format: String) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 282 |     pub fn build_fields(self) -> (String, Vec<Message>, Option<bool>, Option<HashMap<String, Value>>, Option<String>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `read_timeout` is never read
[INFO] [stdout]   --> src/llm_api/utils/client.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct TimeoutConfig {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 29 |     pub read_timeout: Option<Duration>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `TimeoutConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_request_timeout`, and `with_connect_timeout` are never used
[INFO] [stdout]   --> src/llm_api/utils/client.rs:43:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | impl TimeoutConfig {
[INFO] [stdout]    | ------------------ associated items in this implementation
[INFO] [stdout] 43 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn with_request_timeout(mut self, timeout: Duration) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn with_connect_timeout(mut self, timeout: Duration) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_attempts`, `base_delay`, `max_delay`, and `exponential_backoff` are never read
[INFO] [stdout]   --> src/llm_api/utils/client.rs:64:9
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub struct RetryConfig {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 63 |     /// 最大重试次数
[INFO] [stdout] 64 |     pub max_attempts: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 65 |     /// 基础延迟时间
[INFO] [stdout] 66 |     pub base_delay: Duration,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 67 |     /// 最大延迟时间
[INFO] [stdout] 68 |     pub max_delay: Duration,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 69 |     /// 是否启用指数退避
[INFO] [stdout] 70 |     pub exponential_backoff: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RetryConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_max_attempts`, and `with_base_delay` are never used
[INFO] [stdout]   --> src/llm_api/utils/client.rs:85:12
[INFO] [stdout]    |
[INFO] [stdout] 84 | impl RetryConfig {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 85 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 89 |     pub fn with_max_attempts(mut self, attempts: u32) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub fn with_base_delay(mut self, delay: Duration) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `retry` is never read
[INFO] [stdout]    --> src/llm_api/utils/client.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 104 | pub struct ClientConfig {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 108 |     pub retry: RetryConfig,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ClientConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `with_timeout`, `with_retry`, and `with_user_agent` are never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:131:12
[INFO] [stdout]     |
[INFO] [stdout] 126 | impl ClientConfig {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 131 |     pub fn with_timeout(mut self, timeout: TimeoutConfig) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 136 |     pub fn with_retry(mut self, retry: RetryConfig) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 146 |     pub fn with_user_agent(mut self, user_agent: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Timeout`, `RetryExhausted`, `LLMApi`, and `Internal` are never constructed
[INFO] [stdout]    --> src/llm_api/utils/client.rs:158:5
[INFO] [stdout]     |
[INFO] [stdout] 156 | pub enum ClientError {
[INFO] [stdout]     |          ----------- variants in this enum
[INFO] [stdout] 157 |     /// 请求超时
[INFO] [stdout] 158 |     Timeout { duration: Duration },
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 162 |     RetryExhausted { attempts: u32, last_error: String },
[INFO] [stdout]     |     ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 166 |     LLMApi { message: String, status_code: Option<u16> },
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 170 |     Internal { message: String },
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ClientError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RequestContext` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client.rs:207:12
[INFO] [stdout]     |
[INFO] [stdout] 207 | pub struct RequestContext {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:232:12
[INFO] [stdout]     |
[INFO] [stdout] 230 | impl RequestContext {
[INFO] [stdout]     | ------------------- associated items in this implementation
[INFO] [stdout] 231 |     /// 创建新的请求上下文
[INFO] [stdout] 232 |     pub fn new(url: &str, max_attempts: u32, is_stream: bool) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 249 |     pub fn set_model_id(&mut self, model_id: String) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 254 |     pub fn add_tokens(&mut self, tokens: i64) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 259 |     pub fn start_retry(&mut self, reason: String) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 266 |     pub fn total_elapsed(&self) -> Duration {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 271 |     pub fn attempt_elapsed(&self) -> Duration {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 276 |     pub fn is_final_attempt(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]    --> src/llm_api/utils/client.rs:285:9
[INFO] [stdout]     |
[INFO] [stdout] 283 | pub struct ClientMetrics {
[INFO] [stdout]     |            ------------- fields in this struct
[INFO] [stdout] 284 |     /// 总请求数
[INFO] [stdout] 285 |     pub total_requests: u64,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout] 286 |     /// 成功请求数
[INFO] [stdout] 287 |     pub successful_requests: u64,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 288 |     /// 失败请求数
[INFO] [stdout] 289 |     pub failed_requests: u64,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 290 |     /// 重试次数
[INFO] [stdout] 291 |     pub retry_count: u64,
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout] 292 |     /// 平均响应时间
[INFO] [stdout] 293 |     pub avg_response_time: Duration,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 294 |     /// 最长响应时间
[INFO] [stdout] 295 |     pub max_response_time: Duration,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 296 |     /// 最短响应时间
[INFO] [stdout] 297 |     pub min_response_time: Duration,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ClientMetrics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `client`, `config`, and `metrics` are never read
[INFO] [stdout]    --> src/llm_api/utils/client.rs:306:5
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub struct BaseClient {
[INFO] [stdout]     |            ---------- fields in this struct
[INFO] [stdout] 305 |     /// HTTP 客户端
[INFO] [stdout] 306 |     client: HttpClient,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 307 |     /// 客户端配置
[INFO] [stdout] 308 |     config: ClientConfig,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 309 |     /// 监控指标
[INFO] [stdout] 310 |     metrics: Arc<Mutex<ClientMetrics>>,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `BaseClient` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:355:12
[INFO] [stdout]     |
[INFO] [stdout] 313 | impl BaseClient {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 355 |     pub fn new_default() -> Result<Self, ClientError> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 362 |     pub fn http_client(&self) -> &HttpClient {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 367 |     pub fn config(&self) -> &ClientConfig {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 372 |     pub fn metrics(&self) -> ClientMetrics {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 377 |     pub async fn post<T>(&self, url: &str, body: T) -> Result<Response, ClientError>
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 515 |     pub async fn post_stream<T, F>(&self, url: &str, body: T, mut callback: F) -> Result<(), ClientError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 724 |     fn calculate_backoff_delay(&self, attempt: u32) -> Duration {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 739 |     fn should_retry(&self, error: &ClientError, _attempt: u32) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 754 |     fn update_success_metrics(&self, response_time: Duration) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 780 |     fn update_failure_metrics(&self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 788 |     fn log_request_start(&self, ctx: &RequestContext) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 799 |     fn log_retry_attempt(&self, ctx: &RequestContext, delay: Duration) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 813 |     fn log_request_success(&self, ctx: &RequestContext) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 825 |     fn log_request_failure(&self, ctx: &RequestContext, error: &ClientError) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 838 |     fn log_network_error(&self, ctx: &RequestContext, error: &reqwest::Error) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 859 |     fn log_timeout_error(&self, ctx: &RequestContext, timeout_duration: Duration) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 872 |     fn log_api_error(&self, ctx: &RequestContext, message: &str, status_code: Option<u16>) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 885 |     fn log_retry_exhausted(&self, ctx: &RequestContext, final_error: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 898 |     async fn create_call_record(&self, ctx: &RequestContext, status_code: i64, error_message: Option<String>) {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `LLMClientTrait` is never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:942:11
[INFO] [stdout]     |
[INFO] [stdout] 942 | pub trait LLMClientTrait {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `semaphore` and `current_index` are never read
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct ClientPool<T> {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] 16 |     clients: Vec<Arc<Mutex<T>>>,
[INFO] [stdout] 17 |     semaphore: Arc<Semaphore>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 18 |     current_index: std::sync::atomic::AtomicUsize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `acquire` is never used
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:32:18
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl<T> ClientPool<T> {
[INFO] [stdout]    | --------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub async fn acquire(&self) -> ClientGuard<T> {
[INFO] [stdout]    |                  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientGuard` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:50:12
[INFO] [stdout]    |
[INFO] [stdout] 50 | pub struct ClientGuard<T> {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `lock` is never used
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:56:18
[INFO] [stdout]    |
[INFO] [stdout] 55 | impl<T> ClientGuard<T> {
[INFO] [stdout]    | ---------------------- method in this implementation
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<T> {
[INFO] [stdout]    |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `base_client` and `base_url` are never read
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:63:5
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub struct DynamicAliClient {
[INFO] [stdout]    |            ---------------- fields in this struct
[INFO] [stdout] 63 |     base_client: BaseClient,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 64 |     base_url: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `chat_with_auto_key` and `chat_stream_with_auto_key` are never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:81:18
[INFO] [stdout]     |
[INFO] [stdout]  67 | impl DynamicAliClient {
[INFO] [stdout]     | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  81 |     pub async fn chat_with_auto_key(&self, request: AliChatRequest) -> Result<AliChatResponse, AliError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 128 |     pub async fn chat_stream_with_auto_key<F>(&self, request: AliChatRequest, callback: F) -> Result<(), AliError>
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GlobalAliClientPool` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:163:12
[INFO] [stdout]     |
[INFO] [stdout] 163 | pub struct GlobalAliClientPool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `init`, `chat`, `chat_stream`, and `size` are never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:169:18
[INFO] [stdout]     |
[INFO] [stdout] 167 | impl GlobalAliClientPool {
[INFO] [stdout]     | ------------------------ associated items in this implementation
[INFO] [stdout] 168 |     /// 初始化全局客户端池
[INFO] [stdout] 169 |     pub async fn init(pool_size: usize) -> Result<Self> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 194 |     pub async fn chat(&self, request: AliChatRequest) -> Result<AliChatResponse, AliError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 201 |     pub async fn chat_stream<F>(&self, request: AliChatRequest, callback: F) -> Result<(), AliError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 211 |     pub fn size(&self) -> usize {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `GLOBAL_ALI_POOL` is never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:217:8
[INFO] [stdout]     |
[INFO] [stdout] 217 | static GLOBAL_ALI_POOL: OnceCell<GlobalAliClientPool> = OnceCell::const_new();
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `init_ali_client_pool` is never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:220:14
[INFO] [stdout]     |
[INFO] [stdout] 220 | pub async fn init_ali_client_pool(pool_size: usize) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_ali_client_pool` is never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:228:14
[INFO] [stdout]     |
[INFO] [stdout] 228 | pub async fn get_ali_client_pool() -> Result<&'static GlobalAliClientPool> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `with_stop` and `with_incremental_output` are never used
[INFO] [stdout]   --> src/llm_api/ali/client.rs:89:12
[INFO] [stdout]    |
[INFO] [stdout] 53 | impl AliChatRequest {
[INFO] [stdout]    | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 89 |     pub fn with_stop(mut self, stop: Vec<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 95 |     pub fn with_incremental_output(mut self, incremental: bool) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliUsage` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:245:12
[INFO] [stdout]     |
[INFO] [stdout] 245 | pub struct AliUsage {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliPromptTokensDetails` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:259:12
[INFO] [stdout]     |
[INFO] [stdout] 259 | pub struct AliPromptTokensDetails {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliChoice` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:267:12
[INFO] [stdout]     |
[INFO] [stdout] 267 | pub struct AliChoice {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliChatResponse` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:281:12
[INFO] [stdout]     |
[INFO] [stdout] 281 | pub struct AliChatResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliStreamResponse` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:331:12
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub struct AliStreamResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliStreamChoice` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:349:12
[INFO] [stdout]     |
[INFO] [stdout] 349 | pub struct AliStreamChoice {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliDelta` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:361:12
[INFO] [stdout]     |
[INFO] [stdout] 361 | pub struct AliDelta {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `AliError` is never used
[INFO] [stdout]    --> src/llm_api/ali/client.rs:372:10
[INFO] [stdout]     |
[INFO] [stdout] 372 | pub enum AliError {
[INFO] [stdout]     |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `base_client`, `api_key`, and `base_url` are never read
[INFO] [stdout]    --> src/llm_api/ali/client.rs:417:5
[INFO] [stdout]     |
[INFO] [stdout] 415 | pub struct AliClient {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 416 |     /// 基础 HTTP 客户端
[INFO] [stdout] 417 |     base_client: BaseClient,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout] 418 |     /// API Key
[INFO] [stdout] 419 |     api_key: String,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 420 |     /// API 基础 URL
[INFO] [stdout] 421 |     base_url: String,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/ali/client.rs:429:12
[INFO] [stdout]     |
[INFO] [stdout] 424 | impl AliClient {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 429 |     pub fn new(api_key: String) -> Result<Self> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 434 |     pub fn new_with_base_url(api_key: String, base_url: String) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 443 |     pub fn new_with_config(api_key: String, base_url: String, mut config: ClientConfig) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 459 |     pub fn new_with_client(api_key: String, base_url: String, mut config: ClientConfig, client: Client) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 475 |     pub async fn chat(&self, mut request: AliChatRequest) -> Result<AliChatResponse, AliError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 508 |     pub async fn chat_stream<F>(&self, mut request: AliChatRequest, mut callback: F) -> Result<(), AliError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 554 |     pub fn api_key(&self) -> &str {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 559 |     pub fn base_url(&self) -> &str {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaChatRequest` is never constructed
[INFO] [stdout]   --> src/llm_api/ollama/client.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct OllamaChatRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_tools`, and `add_tool` are never used
[INFO] [stdout]   --> src/llm_api/ollama/client.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | impl OllamaChatRequest {
[INFO] [stdout]    | ---------------------- associated items in this implementation
[INFO] [stdout] 43 |     /// 创建新的聊天请求
[INFO] [stdout] 44 |     pub fn new(model: String, messages: Vec<Message>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     pub fn with_tools(mut self, tools: Vec<Tool>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     pub fn add_tool(mut self, tool: Tool) -> Self {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaChatResponse` is never constructed
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:119:12
[INFO] [stdout]     |
[INFO] [stdout] 119 | pub struct OllamaChatResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `OllamaError` is never used
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:182:10
[INFO] [stdout]     |
[INFO] [stdout] 182 | pub enum OllamaError {
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaClient` is never constructed
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:223:12
[INFO] [stdout]     |
[INFO] [stdout] 223 | pub struct OllamaClient {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:232:12
[INFO] [stdout]     |
[INFO] [stdout] 230 | impl OllamaClient {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout] 231 |     /// 创建新的 Ollama 客户端
[INFO] [stdout] 232 |     pub fn new(base_url: String) -> Result<Self> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 237 |     pub fn new_with_config(base_url: String, config: ClientConfig) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 247 |     pub fn new_with_client(base_url: String, config: ClientConfig, client: Client) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 257 |     pub async fn chat(&self, mut request: OllamaChatRequest) -> Result<OllamaChatResponse, OllamaError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 281 |     pub async fn chat_stream<F>(&self, mut request: OllamaChatRequest, mut callback: F) -> Result<(), OllamaError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 318 |     pub async fn list_models(&self) -> Result<Vec<String>, OllamaError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 347 |     pub async fn is_model_available(&self, model_name: &str) -> Result<bool, OllamaError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Provider` is never used
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:28:10
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub enum Provider {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DispatchRequest` is never constructed
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:38:12
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub struct DispatchRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DispatchResponse` is never constructed
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:56:12
[INFO] [stdout]    |
[INFO] [stdout] 56 | pub struct DispatchResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TokenUsage` is never constructed
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub struct TokenUsage {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `LLMClientAdapter` is never used
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:77:11
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub trait LLMClientAdapter: Send + Sync {
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `LLMError` is never used
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:86:10
[INFO] [stdout]    |
[INFO] [stdout] 86 | pub enum LLMError {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaAdapter` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:129:12
[INFO] [stdout]     |
[INFO] [stdout] 129 | pub struct OllamaAdapter {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:134:12
[INFO] [stdout]     |
[INFO] [stdout] 133 | impl OllamaAdapter {
[INFO] [stdout]     | ------------------ associated function in this implementation
[INFO] [stdout] 134 |     pub fn new(client: OllamaClient) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliAdapter` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:216:12
[INFO] [stdout]     |
[INFO] [stdout] 216 | pub struct AliAdapter {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:221:12
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl AliAdapter {
[INFO] [stdout]     | --------------- associated function in this implementation
[INFO] [stdout] 221 |     pub fn new(client: AliClient) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliPoolAdapter` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:227:12
[INFO] [stdout]     |
[INFO] [stdout] 227 | pub struct AliPoolAdapter {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:232:12
[INFO] [stdout]     |
[INFO] [stdout] 231 | impl AliPoolAdapter {
[INFO] [stdout]     | ------------------- associated function in this implementation
[INFO] [stdout] 232 |     pub fn new(pool: Arc<ClientPool<DynamicAliClient>>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LLMDispatcher` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:401:12
[INFO] [stdout]     |
[INFO] [stdout] 401 | pub struct LLMDispatcher {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DispatchConfig` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:407:12
[INFO] [stdout]     |
[INFO] [stdout] 407 | pub struct DispatchConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:428:12
[INFO] [stdout]     |
[INFO] [stdout] 427 | impl LLMDispatcher {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout] 428 |     pub fn new(config: Option<DispatchConfig>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 436 |     pub async fn new_with_database(config: Option<DispatchConfig>, db_url: &str, init_sql_path: &str) -> Result<Self, Box<dyn std::...
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 483 |     pub async fn register_ali_pool(&self, pool_size: usize) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 503 |     pub async fn register_client(&self, client: Box<dyn LLMClientAdapter>) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 510 |     pub async fn register_clients(&self, clients: Vec<Box<dyn LLMClientAdapter>>) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 517 |     pub async fn dispatch(&self, mut request: DispatchRequest) -> Result<DispatchResponse, LLMError> {
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 537 |     pub async fn dispatch_stream(&self, mut request: DispatchRequest) -> Result<tokio::sync::mpsc::Receiver<Result<String, LLMError...
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 549 |     pub async fn list_models(&self, provider: Option<Provider>) -> HashMap<Provider, Vec<String>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 567 |     pub async fn is_provider_available(&self, provider: &Provider) -> bool {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 573 |     async fn dispatch_internal(&self, request: &DispatchRequest) -> Result<DispatchResponse, LLMError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 604 |     async fn try_fallback(&self, mut request: DispatchRequest, original_error: LLMError) -> Result<DispatchResponse, LLMError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 621 |     fn apply_defaults(&self, request: &mut DispatchRequest) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 634 |     fn validate_request(&self, request: &DispatchRequest) -> Result<(), LLMError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_stream`, `with_temperature`, `with_max_tokens`, `with_top_p`, and `with_stop` are never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:655:12
[INFO] [stdout]     |
[INFO] [stdout] 654 | impl DispatchRequest {
[INFO] [stdout]     | -------------------- associated items in this implementation
[INFO] [stdout] 655 |     pub fn new(provider: Provider, model: String, messages: Vec<Message>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 673 |     pub fn with_stream(mut self, stream: bool) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 678 |     pub fn with_temperature(mut self, temperature: f32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 683 |     pub fn with_max_tokens(mut self, max_tokens: u32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 688 |     pub fn with_top_p(mut self, top_p: f32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 693 |     pub fn with_stop(mut self, stop: Vec<String>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `json_format` is never read
[INFO] [stdout]   --> src/logger.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub struct LogConfig {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub json_format: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `LogConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `init_prod_logger` is never used
[INFO] [stdout]    --> src/logger.rs:131:8
[INFO] [stdout]     |
[INFO] [stdout] 131 | pub fn init_prod_logger() -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:56:23
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<T> {
[INFO] [stdout]    |                       ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<'_, T> {
[INFO] [stdout]    |                                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `get_decrypted_api_key_from_cache`, `get_provider_key_pool_from_cache`, and `preload_provider_key_pools_to_cache`
[INFO] [stdout]  --> tests/provider_key_pool_tests.rs:6:38
[INFO] [stdout]   |
[INFO] [stdout] 6 |     toggle_provider_key_pool_active, preload_provider_key_pools_to_cache,
[INFO] [stdout]   |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 7 |     get_provider_key_pool_from_cache, get_decrypted_api_key_from_cache
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `process_api_key`
[INFO] [stdout]  --> tests/provider_key_pool_tests.rs:9:58
[INFO] [stdout]   |
[INFO] [stdout] 9 | use project_rust_learn::dao::provider_key_pool::crypto::{process_api_key};
[INFO] [stdout]   |                                                          ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_or_load` and `invalidate` are never used
[INFO] [stdout]   --> src/dao/cache/cache.rs:32:18
[INFO] [stdout]    |
[INFO] [stdout] 10 | / impl<K, V> CacheService<K, V>
[INFO] [stdout] 11 | | where
[INFO] [stdout] 12 | |     K: std::hash::Hash + Eq + Clone + Send + Sync + 'static,
[INFO] [stdout] 13 | |     V: Clone + Send + Sync + 'static,
[INFO] [stdout]    | |_____________________________________- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |       pub async fn get_or_load<F, Fut>(&self, key: K, loader: F) -> V
[INFO] [stdout]    |                    ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 48 |       pub async fn invalidate(&self, key: &K) {
[INFO] [stdout]    |                    ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_model` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:25:14
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub async fn create_model(pool: &SqlitePool, model: &Model) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_by_id` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:51:14
[INFO] [stdout]    |
[INFO] [stdout] 51 | pub async fn get_model_by_id(pool: &SqlitePool, id: &str) -> Result<Option<Model>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_by_provider_and_name` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:59:14
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub async fn get_model_by_provider_and_name(pool: &SqlitePool, provider: &str, name: &str) -> Result<Option<Model>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_model` is never used
[INFO] [stdout]   --> src/dao/model/model.rs:77:14
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub async fn update_model(pool: &SqlitePool, model: &Model) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_model` is never used
[INFO] [stdout]    --> src/dao/model/model.rs:114:14
[INFO] [stdout]     |
[INFO] [stdout] 114 | pub async fn delete_model(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_from_cache` is never used
[INFO] [stdout]   --> src/dao/model/preload.rs:45:14
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub async fn get_model_from_cache(provider: &str, name: &str) -> Option<Model> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `insert_model_to_cache` is never used
[INFO] [stdout]   --> src/dao/model/preload.rs:67:14
[INFO] [stdout]    |
[INFO] [stdout] 67 | pub async fn insert_model_to_cache(model: &Model) -> Result<()> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Provider` is never constructed
[INFO] [stdout]  --> src/dao/provider/provider.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Provider {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub async fn create_provider(pool: &SqlitePool, provider: &Provider) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_provider_by_id` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn get_provider_by_id(pool: &SqlitePool, id: &str) -> Result<Option<Provider>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_provider_by_name` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:44:14
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub async fn get_provider_by_name(pool: &SqlitePool, name: &str) -> Result<Option<Provider>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_providers` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:53:14
[INFO] [stdout]    |
[INFO] [stdout] 53 | pub async fn get_all_providers(pool: &SqlitePool) -> Result<Vec<Provider>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:61:14
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub async fn update_provider(pool: &SqlitePool, id: &str, provider: &Provider) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:78:14
[INFO] [stdout]    |
[INFO] [stdout] 78 | pub async fn delete_provider(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `hard_delete_provider` is never used
[INFO] [stdout]   --> src/dao/provider/provider.rs:87:14
[INFO] [stdout]    |
[INFO] [stdout] 87 | pub async fn hard_delete_provider(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `count_models_for_provider` is never used
[INFO] [stdout]    --> src/dao/provider/provider.rs:103:14
[INFO] [stdout]     |
[INFO] [stdout] 103 | pub async fn count_models_for_provider(pool: &SqlitePool, provider_id: &str) -> Result<i64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_provider_key_pool` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn create_provider_key_pool(pool: &SqlitePool, key_pool: &ProviderKeyPool) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_provider_key_pool_by_id` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:43:14
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub async fn get_provider_key_pool_by_id(pool: &SqlitePool, id: &str) -> Result<Option<ProviderKeyPool>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_provider_key_pools_by_provider` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:60:14
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub async fn list_provider_key_pools_by_provider(pool: &SqlitePool, provider: &str) -> Result<Vec<ProviderKeyPool>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_active_provider_key_pools` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:69:14
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub async fn list_active_provider_key_pools(pool: &SqlitePool) -> Result<Vec<ProviderKeyPool>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_provider_key_pool` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/provider_key_pool.rs:77:14
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub async fn update_provider_key_pool(pool: &SqlitePool, key_pool: &ProviderKeyPool) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_key_pool_usage` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:105:14
[INFO] [stdout]     |
[INFO] [stdout] 105 | pub async fn update_key_pool_usage(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_provider_key_pool` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:119:14
[INFO] [stdout]     |
[INFO] [stdout] 119 | pub async fn delete_provider_key_pool(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `toggle_provider_key_pool_active` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:128:14
[INFO] [stdout]     |
[INFO] [stdout] 128 | pub async fn toggle_provider_key_pool_active(pool: &SqlitePool, id: &str, is_active: bool) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_provider_key_pool_from_raw_key` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/provider_key_pool.rs:152:14
[INFO] [stdout]     |
[INFO] [stdout] 152 | pub async fn create_provider_key_pool_from_raw_key(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `insert_provider_key_pool_to_cache` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:167:14
[INFO] [stdout]     |
[INFO] [stdout] 167 | pub async fn insert_provider_key_pool_to_cache(key_pool: &ProviderKeyPool) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `insert_cached_provider_key_pool_to_cache` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:185:14
[INFO] [stdout]     |
[INFO] [stdout] 185 | pub async fn insert_cached_provider_key_pool_to_cache(cached_key_pool: &CachedProviderKeyPool) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_api_key_round_robin` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:209:14
[INFO] [stdout]     |
[INFO] [stdout] 209 | pub async fn get_api_key_round_robin(provider: &str) -> Option<(String, String)> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reload_provider_api_keys` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:267:14
[INFO] [stdout]     |
[INFO] [stdout] 267 | pub async fn reload_provider_api_keys(pool: &SqlitePool, provider: &str) -> anyhow::Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `reset_round_robin_counter` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:303:14
[INFO] [stdout]     |
[INFO] [stdout] 303 | pub async fn reset_round_robin_counter(provider: &str) {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_round_robin_counter` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:318:14
[INFO] [stdout]     |
[INFO] [stdout] 318 | pub async fn get_round_robin_counter(provider: &str) -> usize {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_active_key_count` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/preload.rs:332:14
[INFO] [stdout]     |
[INFO] [stdout] 332 | pub async fn get_active_key_count(provider: &str) -> usize {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_key_hash` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/crypto.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub fn generate_key_hash(api_key: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `encrypt_api_key` is never used
[INFO] [stdout]   --> src/dao/provider_key_pool/crypto.rs:35:8
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub fn encrypt_api_key(api_key: &str) -> Result<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_api_key` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/crypto.rs:100:8
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub fn process_api_key(api_key: &str) -> Result<(String, String)> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `verify_key_integrity` is never used
[INFO] [stdout]    --> src/dao/provider_key_pool/crypto.rs:114:8
[INFO] [stdout]     |
[INFO] [stdout] 114 | pub fn verify_key_integrity(decrypted_key: &str, stored_hash: &str) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_system_config` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub async fn create_system_config(pool: &SqlitePool, config: &SystemConfig) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_system_config_by_id` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn get_system_config_by_id(pool: &SqlitePool, id: &str) -> Result<Option<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_system_config_by_key` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:44:14
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub async fn get_system_config_by_key(pool: &SqlitePool, category: &str, key_name: &str) -> Result<Option<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_system_configs` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:54:14
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub async fn list_system_configs(pool: &SqlitePool) -> Result<Vec<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_system_configs_by_category` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:62:14
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub async fn list_system_configs_by_category(pool: &SqlitePool, category: &str) -> Result<Vec<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_encrypted_system_configs` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:71:14
[INFO] [stdout]    |
[INFO] [stdout] 71 | pub async fn list_encrypted_system_configs(pool: &SqlitePool) -> Result<Vec<SystemConfig>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_system_config` is never used
[INFO] [stdout]   --> src/dao/system_config/system_config.rs:79:14
[INFO] [stdout]    |
[INFO] [stdout] 79 | pub async fn update_system_config(pool: &SqlitePool, config: &SystemConfig) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_system_config_value` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:101:14
[INFO] [stdout]     |
[INFO] [stdout] 101 | pub async fn update_system_config_value(pool: &SqlitePool, category: &str, key_name: &str, value: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_system_config_encryption` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:118:14
[INFO] [stdout]     |
[INFO] [stdout] 118 | pub async fn update_system_config_encryption(pool: &SqlitePool, id: &str, is_encrypted: bool, encrypted_value: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_system_config` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:136:14
[INFO] [stdout]     |
[INFO] [stdout] 136 | pub async fn delete_system_config(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_system_configs_by_category` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:145:14
[INFO] [stdout]     |
[INFO] [stdout] 145 | pub async fn delete_system_configs_by_category(pool: &SqlitePool, category: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `system_config_exists` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:154:14
[INFO] [stdout]     |
[INFO] [stdout] 154 | pub async fn system_config_exists(pool: &SqlitePool, category: &str, key_name: &str) -> Result<bool> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_system_config_value` is never used
[INFO] [stdout]    --> src/dao/system_config/system_config.rs:164:14
[INFO] [stdout]     |
[INFO] [stdout] 164 | pub async fn get_system_config_value(pool: &SqlitePool, category: &str, key_name: &str) -> Result<Option<String>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_call_log` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub async fn create_call_log(pool: &SqlitePool, call_log: &CallLog) -> Result<u64> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_call_log_by_id` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn get_call_log_by_id(pool: &SqlitePool, id: &str) -> Result<Option<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:44:14
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub async fn list_call_logs(pool: &SqlitePool) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_paginated` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:52:14
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub async fn list_call_logs_paginated(pool: &SqlitePool, limit: i64, offset: i64) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_by_model` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:62:14
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub async fn list_call_logs_by_model(pool: &SqlitePool, model_id: &str) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_by_status` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:71:14
[INFO] [stdout]    |
[INFO] [stdout] 71 | pub async fn list_call_logs_by_status(pool: &SqlitePool, status_code: i64) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_error_call_logs` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:80:14
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub async fn list_error_call_logs(pool: &SqlitePool) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_call_logs_by_date_range` is never used
[INFO] [stdout]   --> src/dao/call_log/call_log.rs:88:14
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub async fn list_call_logs_by_date_range(pool: &SqlitePool, start_date: &str, end_date: &str) -> Result<Vec<CallLog>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_call_logs_stats` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:100:14
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub async fn get_call_logs_stats(pool: &SqlitePool) -> Result<CallLogStats> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_call_logs_stats_by_model` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:117:14
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub async fn get_call_logs_stats_by_model(pool: &SqlitePool, model_id: &str) -> Result<CallLogStats> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_call_log` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:135:14
[INFO] [stdout]     |
[INFO] [stdout] 135 | pub async fn update_call_log(pool: &SqlitePool, call_log: &CallLog) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_call_log` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:157:14
[INFO] [stdout]     |
[INFO] [stdout] 157 | pub async fn delete_call_log(pool: &SqlitePool, id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_call_logs_by_model` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:166:14
[INFO] [stdout]     |
[INFO] [stdout] 166 | pub async fn delete_call_logs_by_model(pool: &SqlitePool, model_id: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_old_call_logs` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:175:14
[INFO] [stdout]     |
[INFO] [stdout] 175 | pub async fn delete_old_call_logs(pool: &SqlitePool, before_date: &str) -> Result<u64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `count_call_logs` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:184:14
[INFO] [stdout]     |
[INFO] [stdout] 184 | pub async fn count_call_logs(pool: &SqlitePool) -> Result<i64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `count_call_logs_by_model` is never used
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:192:14
[INFO] [stdout]     |
[INFO] [stdout] 192 | pub async fn count_call_logs_by_model(pool: &SqlitePool, model_id: &str) -> Result<i64> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CallLogStats` is never constructed
[INFO] [stdout]    --> src/dao/call_log/call_log.rs:202:12
[INFO] [stdout]     |
[INFO] [stdout] 202 | pub struct CallLogStats {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_api_key_with_cache` is never used
[INFO] [stdout]   --> src/llm_api/utils/api_key_check.rs:19:14
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub async fn get_api_key_with_cache(provider: &str, id: &str) -> Result<Option<String>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_model_with_cache` is never used
[INFO] [stdout]   --> src/llm_api/utils/model_check.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub async fn get_model_with_cache(provider: &str, name: &str) -> Result<Option<Model>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ToolCall` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/msg_structure.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct ToolCall {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Message` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/msg_structure.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct Message {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Function` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/msg_structure.rs:47:12
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub struct Function {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/utils/msg_structure.rs:57:12
[INFO] [stdout]     |
[INFO] [stdout]  55 | impl Message {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout]  56 |     /// 创建系统消息
[INFO] [stdout]  57 |     pub fn system(content: String) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  69 |     pub fn user(content: String) -> Self {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout]  81 |     pub fn assistant(content: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn tool(content: String, tool_name: String) -> Self {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |     pub fn with_images(mut self, images: Vec<String>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub fn with_thinking(mut self, thinking: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 117 |     pub fn with_tool_calls(mut self, tool_calls: Vec<ToolCall>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Tool` is never constructed
[INFO] [stdout]  --> src/llm_api/utils/tool_structure.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Tool {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ToolFunction` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/tool_structure.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct ToolFunction {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ChatRequestTrait` is never used
[INFO] [stdout]   --> src/llm_api/utils/chat_traits.rs:15:11
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub trait ChatRequestTrait {
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ChatResponseTrait` is never used
[INFO] [stdout]   --> src/llm_api/utils/chat_traits.rs:71:11
[INFO] [stdout]    |
[INFO] [stdout] 71 | pub trait ChatResponseTrait {
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PerformanceSummary` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:130:12
[INFO] [stdout]     |
[INFO] [stdout] 130 | pub struct PerformanceSummary {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `empty`, `has_data`, and `format` are never used
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:143:12
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl PerformanceSummary {
[INFO] [stdout]     | ----------------------- associated items in this implementation
[INFO] [stdout] 142 |     /// 创建空的性能摘要
[INFO] [stdout] 143 |     pub fn empty() -> Self {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 153 |     pub fn has_data(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 160 |     pub fn format(&self) -> String {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ChatClientTrait` is never used
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:192:11
[INFO] [stdout]     |
[INFO] [stdout] 192 | pub trait ChatClientTrait {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ChatRequestBuilder` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:213:12
[INFO] [stdout]     |
[INFO] [stdout] 213 | pub struct ChatRequestBuilder {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/utils/chat_traits.rs:223:12
[INFO] [stdout]     |
[INFO] [stdout] 221 | impl ChatRequestBuilder {
[INFO] [stdout]     | ----------------------- associated items in this implementation
[INFO] [stdout] 222 |     /// 创建新的构建器
[INFO] [stdout] 223 |     pub fn new(model: String) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 234 |     pub fn messages(mut self, messages: Vec<Message>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 240 |     pub fn add_message(mut self, message: Message) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     pub fn system(mut self, content: String) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 252 |     pub fn user(mut self, content: String) -> Self {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 258 |     pub fn assistant(mut self, content: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 264 |     pub fn stream(mut self, stream: bool) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 270 |     pub fn options(mut self, options: HashMap<String, Value>) -> Self {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 276 |     pub fn format(mut self, format: String) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 282 |     pub fn build_fields(self) -> (String, Vec<Message>, Option<bool>, Option<HashMap<String, Value>>, Option<String>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TimeoutConfig` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/client.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct TimeoutConfig {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_request_timeout`, and `with_connect_timeout` are never used
[INFO] [stdout]   --> src/llm_api/utils/client.rs:43:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | impl TimeoutConfig {
[INFO] [stdout]    | ------------------ associated items in this implementation
[INFO] [stdout] 43 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn with_request_timeout(mut self, timeout: Duration) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn with_connect_timeout(mut self, timeout: Duration) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RetryConfig` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/client.rs:62:12
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub struct RetryConfig {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_max_attempts`, and `with_base_delay` are never used
[INFO] [stdout]   --> src/llm_api/utils/client.rs:85:12
[INFO] [stdout]    |
[INFO] [stdout] 84 | impl RetryConfig {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 85 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 89 |     pub fn with_max_attempts(mut self, attempts: u32) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub fn with_base_delay(mut self, delay: Duration) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientConfig` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client.rs:104:12
[INFO] [stdout]     |
[INFO] [stdout] 104 | pub struct ClientConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_timeout`, `with_retry`, `add_header`, and `with_user_agent` are never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:127:12
[INFO] [stdout]     |
[INFO] [stdout] 126 | impl ClientConfig {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout] 127 |     pub fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 131 |     pub fn with_timeout(mut self, timeout: TimeoutConfig) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 136 |     pub fn with_retry(mut self, retry: RetryConfig) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 141 |     pub fn add_header(mut self, key: String, value: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 146 |     pub fn with_user_agent(mut self, user_agent: String) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ClientError` is never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:156:10
[INFO] [stdout]     |
[INFO] [stdout] 156 | pub enum ClientError {
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RequestContext` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client.rs:207:12
[INFO] [stdout]     |
[INFO] [stdout] 207 | pub struct RequestContext {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:232:12
[INFO] [stdout]     |
[INFO] [stdout] 230 | impl RequestContext {
[INFO] [stdout]     | ------------------- associated items in this implementation
[INFO] [stdout] 231 |     /// 创建新的请求上下文
[INFO] [stdout] 232 |     pub fn new(url: &str, max_attempts: u32, is_stream: bool) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 249 |     pub fn set_model_id(&mut self, model_id: String) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 254 |     pub fn add_tokens(&mut self, tokens: i64) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 259 |     pub fn start_retry(&mut self, reason: String) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 266 |     pub fn total_elapsed(&self) -> Duration {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 271 |     pub fn attempt_elapsed(&self) -> Duration {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 276 |     pub fn is_final_attempt(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientMetrics` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client.rs:283:12
[INFO] [stdout]     |
[INFO] [stdout] 283 | pub struct ClientMetrics {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BaseClient` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client.rs:304:12
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub struct BaseClient {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:315:12
[INFO] [stdout]     |
[INFO] [stdout] 313 | impl BaseClient {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] 314 |     /// 创建新的基础客户端
[INFO] [stdout] 315 |     pub fn new(config: ClientConfig) -> Result<Self, ClientError> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 320 |     pub fn new_with_client(config: ClientConfig, custom_client: Option<HttpClient>) -> Result<Self, ClientError> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 355 |     pub fn new_default() -> Result<Self, ClientError> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 362 |     pub fn http_client(&self) -> &HttpClient {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 367 |     pub fn config(&self) -> &ClientConfig {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 372 |     pub fn metrics(&self) -> ClientMetrics {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 377 |     pub async fn post<T>(&self, url: &str, body: T) -> Result<Response, ClientError>
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 515 |     pub async fn post_stream<T, F>(&self, url: &str, body: T, mut callback: F) -> Result<(), ClientError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 724 |     fn calculate_backoff_delay(&self, attempt: u32) -> Duration {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 739 |     fn should_retry(&self, error: &ClientError, _attempt: u32) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 754 |     fn update_success_metrics(&self, response_time: Duration) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 780 |     fn update_failure_metrics(&self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 788 |     fn log_request_start(&self, ctx: &RequestContext) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 799 |     fn log_retry_attempt(&self, ctx: &RequestContext, delay: Duration) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 813 |     fn log_request_success(&self, ctx: &RequestContext) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 825 |     fn log_request_failure(&self, ctx: &RequestContext, error: &ClientError) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 838 |     fn log_network_error(&self, ctx: &RequestContext, error: &reqwest::Error) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 859 |     fn log_timeout_error(&self, ctx: &RequestContext, timeout_duration: Duration) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 872 |     fn log_api_error(&self, ctx: &RequestContext, message: &str, status_code: Option<u16>) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 885 |     fn log_retry_exhausted(&self, ctx: &RequestContext, final_error: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 898 |     async fn create_call_record(&self, ctx: &RequestContext, status_code: i64, error_message: Option<String>) {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `LLMClientTrait` is never used
[INFO] [stdout]    --> src/llm_api/utils/client.rs:942:11
[INFO] [stdout]     |
[INFO] [stdout] 942 | pub trait LLMClientTrait {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientPool` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct ClientPool<T> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `acquire`, and `size` are never used
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl<T> ClientPool<T> {
[INFO] [stdout]    | --------------------- associated items in this implementation
[INFO] [stdout] 22 |     pub fn new(clients: Vec<T>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub async fn acquire(&self) -> ClientGuard<T> {
[INFO] [stdout]    |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub fn size(&self) -> usize {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientGuard` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:50:12
[INFO] [stdout]    |
[INFO] [stdout] 50 | pub struct ClientGuard<T> {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `lock` is never used
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:56:18
[INFO] [stdout]    |
[INFO] [stdout] 55 | impl<T> ClientGuard<T> {
[INFO] [stdout]    | ---------------------- method in this implementation
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<T> {
[INFO] [stdout]    |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DynamicAliClient` is never constructed
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:62:12
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub struct DynamicAliClient {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `chat_with_auto_key`, and `chat_stream_with_auto_key` are never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:68:12
[INFO] [stdout]     |
[INFO] [stdout]  67 | impl DynamicAliClient {
[INFO] [stdout]     | --------------------- associated items in this implementation
[INFO] [stdout]  68 |     pub fn new() -> Result<Self> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  81 |     pub async fn chat_with_auto_key(&self, request: AliChatRequest) -> Result<AliChatResponse, AliError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 128 |     pub async fn chat_stream_with_auto_key<F>(&self, request: AliChatRequest, callback: F) -> Result<(), AliError>
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GlobalAliClientPool` is never constructed
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:163:12
[INFO] [stdout]     |
[INFO] [stdout] 163 | pub struct GlobalAliClientPool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `init`, `chat`, `chat_stream`, and `size` are never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:169:18
[INFO] [stdout]     |
[INFO] [stdout] 167 | impl GlobalAliClientPool {
[INFO] [stdout]     | ------------------------ associated items in this implementation
[INFO] [stdout] 168 |     /// 初始化全局客户端池
[INFO] [stdout] 169 |     pub async fn init(pool_size: usize) -> Result<Self> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 194 |     pub async fn chat(&self, request: AliChatRequest) -> Result<AliChatResponse, AliError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 201 |     pub async fn chat_stream<F>(&self, request: AliChatRequest, callback: F) -> Result<(), AliError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 211 |     pub fn size(&self) -> usize {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `GLOBAL_ALI_POOL` is never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:217:8
[INFO] [stdout]     |
[INFO] [stdout] 217 | static GLOBAL_ALI_POOL: OnceCell<GlobalAliClientPool> = OnceCell::const_new();
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `init_ali_client_pool` is never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:220:14
[INFO] [stdout]     |
[INFO] [stdout] 220 | pub async fn init_ali_client_pool(pool_size: usize) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_ali_client_pool` is never used
[INFO] [stdout]    --> src/llm_api/utils/client_pool.rs:228:14
[INFO] [stdout]     |
[INFO] [stdout] 228 | pub async fn get_ali_client_pool() -> Result<&'static GlobalAliClientPool> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliChatRequest` is never constructed
[INFO] [stdout]   --> src/llm_api/ali/client.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct AliChatRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_max_tokens`, `with_temperature`, `with_top_p`, `with_stop`, and `with_incremental_output` are never used
[INFO] [stdout]   --> src/llm_api/ali/client.rs:55:12
[INFO] [stdout]    |
[INFO] [stdout] 53 | impl AliChatRequest {
[INFO] [stdout]    | ------------------- associated items in this implementation
[INFO] [stdout] 54 |     /// 创建新的聊天请求
[INFO] [stdout] 55 |     pub fn new(model: String, messages: Vec<Message>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 71 |     pub fn with_max_tokens(mut self, max_tokens: u32) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub fn with_temperature(mut self, temperature: f32) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub fn with_top_p(mut self, top_p: f32) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 89 |     pub fn with_stop(mut self, stop: Vec<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 95 |     pub fn with_incremental_output(mut self, incremental: bool) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliUsage` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:245:12
[INFO] [stdout]     |
[INFO] [stdout] 245 | pub struct AliUsage {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliPromptTokensDetails` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:259:12
[INFO] [stdout]     |
[INFO] [stdout] 259 | pub struct AliPromptTokensDetails {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliChoice` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:267:12
[INFO] [stdout]     |
[INFO] [stdout] 267 | pub struct AliChoice {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliChatResponse` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:281:12
[INFO] [stdout]     |
[INFO] [stdout] 281 | pub struct AliChatResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliStreamResponse` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:331:12
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub struct AliStreamResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliStreamChoice` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:349:12
[INFO] [stdout]     |
[INFO] [stdout] 349 | pub struct AliStreamChoice {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliDelta` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:361:12
[INFO] [stdout]     |
[INFO] [stdout] 361 | pub struct AliDelta {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `AliError` is never used
[INFO] [stdout]    --> src/llm_api/ali/client.rs:372:10
[INFO] [stdout]     |
[INFO] [stdout] 372 | pub enum AliError {
[INFO] [stdout]     |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliClient` is never constructed
[INFO] [stdout]    --> src/llm_api/ali/client.rs:415:12
[INFO] [stdout]     |
[INFO] [stdout] 415 | pub struct AliClient {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/ali/client.rs:426:15
[INFO] [stdout]     |
[INFO] [stdout] 424 | impl AliClient {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 425 |     /// DashScope API 的默认基础 URL
[INFO] [stdout] 426 |     pub const DEFAULT_BASE_URL: &'static str = "https://dashscope.aliyuncs.com";
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 429 |     pub fn new(api_key: String) -> Result<Self> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 434 |     pub fn new_with_base_url(api_key: String, base_url: String) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 443 |     pub fn new_with_config(api_key: String, base_url: String, mut config: ClientConfig) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 459 |     pub fn new_with_client(api_key: String, base_url: String, mut config: ClientConfig, client: Client) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 475 |     pub async fn chat(&self, mut request: AliChatRequest) -> Result<AliChatResponse, AliError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 508 |     pub async fn chat_stream<F>(&self, mut request: AliChatRequest, mut callback: F) -> Result<(), AliError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 554 |     pub fn api_key(&self) -> &str {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 559 |     pub fn base_url(&self) -> &str {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaChatRequest` is never constructed
[INFO] [stdout]   --> src/llm_api/ollama/client.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct OllamaChatRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_tools`, and `add_tool` are never used
[INFO] [stdout]   --> src/llm_api/ollama/client.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | impl OllamaChatRequest {
[INFO] [stdout]    | ---------------------- associated items in this implementation
[INFO] [stdout] 43 |     /// 创建新的聊天请求
[INFO] [stdout] 44 |     pub fn new(model: String, messages: Vec<Message>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     pub fn with_tools(mut self, tools: Vec<Tool>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     pub fn add_tool(mut self, tool: Tool) -> Self {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaChatResponse` is never constructed
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:119:12
[INFO] [stdout]     |
[INFO] [stdout] 119 | pub struct OllamaChatResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `OllamaError` is never used
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:182:10
[INFO] [stdout]     |
[INFO] [stdout] 182 | pub enum OllamaError {
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaClient` is never constructed
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:223:12
[INFO] [stdout]     |
[INFO] [stdout] 223 | pub struct OllamaClient {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/ollama/client.rs:232:12
[INFO] [stdout]     |
[INFO] [stdout] 230 | impl OllamaClient {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout] 231 |     /// 创建新的 Ollama 客户端
[INFO] [stdout] 232 |     pub fn new(base_url: String) -> Result<Self> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 237 |     pub fn new_with_config(base_url: String, config: ClientConfig) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 247 |     pub fn new_with_client(base_url: String, config: ClientConfig, client: Client) -> Result<Self> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 257 |     pub async fn chat(&self, mut request: OllamaChatRequest) -> Result<OllamaChatResponse, OllamaError> {
[INFO] [stdout]     |                  ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 281 |     pub async fn chat_stream<F>(&self, mut request: OllamaChatRequest, mut callback: F) -> Result<(), OllamaError>
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 318 |     pub async fn list_models(&self) -> Result<Vec<String>, OllamaError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 347 |     pub async fn is_model_available(&self, model_name: &str) -> Result<bool, OllamaError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Provider` is never used
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:28:10
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub enum Provider {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DispatchRequest` is never constructed
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:38:12
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub struct DispatchRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DispatchResponse` is never constructed
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:56:12
[INFO] [stdout]    |
[INFO] [stdout] 56 | pub struct DispatchResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TokenUsage` is never constructed
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub struct TokenUsage {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `LLMClientAdapter` is never used
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:77:11
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub trait LLMClientAdapter: Send + Sync {
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `LLMError` is never used
[INFO] [stdout]   --> src/llm_api/dispatcher.rs:86:10
[INFO] [stdout]    |
[INFO] [stdout] 86 | pub enum LLMError {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OllamaAdapter` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:129:12
[INFO] [stdout]     |
[INFO] [stdout] 129 | pub struct OllamaAdapter {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:134:12
[INFO] [stdout]     |
[INFO] [stdout] 133 | impl OllamaAdapter {
[INFO] [stdout]     | ------------------ associated function in this implementation
[INFO] [stdout] 134 |     pub fn new(client: OllamaClient) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliAdapter` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:216:12
[INFO] [stdout]     |
[INFO] [stdout] 216 | pub struct AliAdapter {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:221:12
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl AliAdapter {
[INFO] [stdout]     | --------------- associated function in this implementation
[INFO] [stdout] 221 |     pub fn new(client: AliClient) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AliPoolAdapter` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:227:12
[INFO] [stdout]     |
[INFO] [stdout] 227 | pub struct AliPoolAdapter {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:232:12
[INFO] [stdout]     |
[INFO] [stdout] 231 | impl AliPoolAdapter {
[INFO] [stdout]     | ------------------- associated function in this implementation
[INFO] [stdout] 232 |     pub fn new(pool: Arc<ClientPool<DynamicAliClient>>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LLMDispatcher` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:401:12
[INFO] [stdout]     |
[INFO] [stdout] 401 | pub struct LLMDispatcher {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DispatchConfig` is never constructed
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:407:12
[INFO] [stdout]     |
[INFO] [stdout] 407 | pub struct DispatchConfig {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:428:12
[INFO] [stdout]     |
[INFO] [stdout] 427 | impl LLMDispatcher {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout] 428 |     pub fn new(config: Option<DispatchConfig>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 436 |     pub async fn new_with_database(config: Option<DispatchConfig>, db_url: &str, init_sql_path: &str) -> Result<Self, Box<dyn std::...
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 483 |     pub async fn register_ali_pool(&self, pool_size: usize) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 503 |     pub async fn register_client(&self, client: Box<dyn LLMClientAdapter>) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 510 |     pub async fn register_clients(&self, clients: Vec<Box<dyn LLMClientAdapter>>) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 517 |     pub async fn dispatch(&self, mut request: DispatchRequest) -> Result<DispatchResponse, LLMError> {
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 537 |     pub async fn dispatch_stream(&self, mut request: DispatchRequest) -> Result<tokio::sync::mpsc::Receiver<Result<String, LLMError...
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 549 |     pub async fn list_models(&self, provider: Option<Provider>) -> HashMap<Provider, Vec<String>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 567 |     pub async fn is_provider_available(&self, provider: &Provider) -> bool {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 573 |     async fn dispatch_internal(&self, request: &DispatchRequest) -> Result<DispatchResponse, LLMError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 604 |     async fn try_fallback(&self, mut request: DispatchRequest, original_error: LLMError) -> Result<DispatchResponse, LLMError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 621 |     fn apply_defaults(&self, request: &mut DispatchRequest) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 634 |     fn validate_request(&self, request: &DispatchRequest) -> Result<(), LLMError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_stream`, `with_temperature`, `with_max_tokens`, `with_top_p`, and `with_stop` are never used
[INFO] [stdout]    --> src/llm_api/dispatcher.rs:655:12
[INFO] [stdout]     |
[INFO] [stdout] 654 | impl DispatchRequest {
[INFO] [stdout]     | -------------------- associated items in this implementation
[INFO] [stdout] 655 |     pub fn new(provider: Provider, model: String, messages: Vec<Message>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 673 |     pub fn with_stream(mut self, stream: bool) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 678 |     pub fn with_temperature(mut self, temperature: f32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 683 |     pub fn with_max_tokens(mut self, max_tokens: u32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 688 |     pub fn with_top_p(mut self, top_p: f32) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 693 |     pub fn with_stop(mut self, stop: Vec<String>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `json_format` is never read
[INFO] [stdout]   --> src/logger.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub struct LogConfig {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub json_format: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `LogConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `init_prod_logger` is never used
[INFO] [stdout]    --> src/logger.rs:131:8
[INFO] [stdout]     |
[INFO] [stdout] 131 | pub fn init_prod_logger() -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/llm_api/utils/client_pool.rs:56:23
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<T> {
[INFO] [stdout]    |                       ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 56 |     pub async fn lock(&self) -> tokio::sync::MutexGuard<'_, T> {
[INFO] [stdout]    |                                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `project_rust_learn` (bin "project_rust_learn" test); 147 warnings emitted
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/58b1b3c5342a414c161338871f8004258ccef2a7/bin/rustc --crate-name project_rust_learn --edition=2024 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=20b1913baedbe69f -C extra-filename=-09af700243fd29d7 --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern aes_gcm=/opt/rustwide/target/debug/deps/libaes_gcm-3b2c2625ef9fc44d.rlib --extern anyhow=/opt/rustwide/target/debug/deps/libanyhow-e52f7cf7e00d17db.rlib --extern async_trait=/opt/rustwide/target/debug/deps/libasync_trait-ee5cbda793e3c908.so --extern axum=/opt/rustwide/target/debug/deps/libaxum-17b1a095cc77aba7.rlib --extern base64=/opt/rustwide/target/debug/deps/libbase64-64299f9d815d057c.rlib --extern bytes=/opt/rustwide/target/debug/deps/libbytes-d1b89905a38b08c0.rlib --extern chrono=/opt/rustwide/target/debug/deps/libchrono-54f6a7216c16b6f5.rlib --extern futures=/opt/rustwide/target/debug/deps/libfutures-a093a812b7bcec88.rlib --extern futures_util=/opt/rustwide/target/debug/deps/libfutures_util-6a48cfd3ab78c516.rlib --extern hyper=/opt/rustwide/target/debug/deps/libhyper-f3ca9f3631d7f08a.rlib --extern lazy_static=/opt/rustwide/target/debug/deps/liblazy_static-b3603208c0de2608.rlib --extern log=/opt/rustwide/target/debug/deps/liblog-ce0ba27fbd4fe031.rlib --extern mockito=/opt/rustwide/target/debug/deps/libmockito-55131360d4bcbbe3.rlib --extern moka=/opt/rustwide/target/debug/deps/libmoka-bfbff4db2dbd5d9a.rlib --extern once_cell=/opt/rustwide/target/debug/deps/libonce_cell-0ba6aecba7086d38.rlib --extern project_rust_learn=/opt/rustwide/target/debug/deps/libproject_rust_learn-23c87281572f313d.rlib --extern rand=/opt/rustwide/target/debug/deps/librand-15c10f9a6aa64ce3.rlib --extern reqwest=/opt/rustwide/target/debug/deps/libreqwest-760b6a7cd99cfb35.rlib --extern serde=/opt/rustwide/target/debug/deps/libserde-4fc07b8f792a759f.rlib --extern serde_json=/opt/rustwide/target/debug/deps/libserde_json-fbefb769f7142545.rlib --extern sha2=/opt/rustwide/target/debug/deps/libsha2-60b0e648554fd7c8.rlib --extern sqlx=/opt/rustwide/target/debug/deps/libsqlx-3e55aec83c7727d0.rlib --extern tokio=/opt/rustwide/target/debug/deps/libtokio-e4a48853be811956.rlib --extern tokio_test=/opt/rustwide/target/debug/deps/libtokio_test-33b7c6abb854a838.rlib --extern tower=/opt/rustwide/target/debug/deps/libtower-7fa40a5190a9f42c.rlib --extern tower_http=/opt/rustwide/target/debug/deps/libtower_http-f5c0a122aafdce16.rlib --extern tracing=/opt/rustwide/target/debug/deps/libtracing-f4a86bf4b3388f06.rlib --extern tracing_appender=/opt/rustwide/target/debug/deps/libtracing_appender-45e788516bdbfab7.rlib --extern tracing_subscriber=/opt/rustwide/target/debug/deps/libtracing_subscriber-104fa35a2a59f652.rlib --extern uuid=/opt/rustwide/target/debug/deps/libuuid-d3baeff62f8ee244.rlib --cap-lints=forbid -L native=/opt/rustwide/target/debug/build/libsqlite3-sys-480c32bdf92c4808/out` (signal: 9, SIGKILL: kill)
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "28f61d651d68b1cd67b4e526fb36c3dbc7c083b94c574554975123a4855747af", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "28f61d651d68b1cd67b4e526fb36c3dbc7c083b94c574554975123a4855747af", kill_on_drop: false }`
[INFO] [stdout] 28f61d651d68b1cd67b4e526fb36c3dbc7c083b94c574554975123a4855747af
