mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-25 13:45:03 +08:00
5017002938
Add ability to fetch available models from third-party aggregation providers (SiliconFlow, OpenRouter, etc.) via OpenAI-compatible GET /v1/models endpoint. Users can click "Fetch Models" button in the provider form, then select models from a dropdown on each model input field. - Backend: new model_fetch service + Tauri command (Rust) - Frontend: ModelInputWithFetch shared component - Integrated into all 5 app forms (Claude/Codex/Gemini/OpenCode/OpenClaw) - i18n support for zh/en/ja
32 lines
834 B
Rust
32 lines
834 B
Rust
pub mod config;
|
|
pub mod env_checker;
|
|
pub mod env_manager;
|
|
pub mod mcp;
|
|
pub mod model_fetch;
|
|
pub mod omo;
|
|
pub mod prompt;
|
|
pub mod provider;
|
|
pub mod proxy;
|
|
pub mod skill;
|
|
pub mod speedtest;
|
|
pub mod stream_check;
|
|
pub mod usage_stats;
|
|
pub mod webdav;
|
|
pub mod webdav_auto_sync;
|
|
pub mod webdav_sync;
|
|
|
|
pub use config::ConfigService;
|
|
pub use mcp::McpService;
|
|
pub use omo::OmoService;
|
|
pub use prompt::PromptService;
|
|
pub use provider::{ProviderService, ProviderSortUpdate, SwitchResult};
|
|
pub use proxy::ProxyService;
|
|
#[allow(unused_imports)]
|
|
pub use skill::{DiscoverableSkill, Skill, SkillRepo, SkillService};
|
|
pub use speedtest::{EndpointLatency, SpeedtestService};
|
|
#[allow(unused_imports)]
|
|
pub use usage_stats::{
|
|
DailyStats, LogFilters, ModelStats, PaginatedLogs, ProviderLimitStatus, ProviderStats,
|
|
RequestLogDetail, UsageSummary,
|
|
};
|