Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/123hi123/qwen2api-rs
/ functions
Functions
435 in github.com/123hi123/qwen2api-rs
⨍
Functions
435
◇
Types & classes
54
Function
replace_token_resets_full_health
()
src/account/pool.rs:988
Function
replace_token_unknown_email_is_noop
()
src/account/pool.rs:1020
Method
reset_concurrency_limits
recommended = available_count * max_inflight_per_account;同步設給 queue/global。
src/account/pool.rs:231
Function
resign_account
單帳號 refresh:跑 chat.qwen.ai signin 拿新 JWT 覆寫。 流程:取帳號 password → client.signin(email, password) → pool.replace_token。 失敗時把上游錯誤訊息("incorrect"/"not regis
src/api/admin.rs:193
Function
resign_all
批次 refresh(單次上限 200,避免 HTTP timeout + 風控壓力)。 全表 refresh 由背景 worker 按 exp 過濾後分批跑;此 endpoint 給管理者「手動觸發一輪」。
src/api/admin.rs:225
Function
role_label
(role: &str)
src/request/prompt_builder.rs:75
Function
root
()
src/api/probes.rs:18
Method
run_stream
主串流:產生 UpstreamEvent 流。內含帳號層重試。
src/upstream/executor.rs:156
Method
save
(&self)
src/account/pool.rs:277
Function
sha256_hex
signin 的密碼校驗格式(chat.qwen.ai 後端比對的是 sha256 hex,不是明文)。
src/upstream/client.rs:15
Method
size
(&self, email: &str)
src/upstream/chat_id_pool.rs:173
Method
start_stream
發起串流補全,回傳 reqwest Response(呼叫端做 SSE framing)。
src/upstream/client.rs:290
Function
stats
GET /api/admin/stats?range=1h|6h|24h|7d|all 回傳總覽 summary + 即時 RPM + 按模型/接口分組 + 時序,供數據面板渲染。
src/api/admin.rs:466
Function
stats_recent
GET /api/admin/stats/recent?limit=50 — 最近 N 筆請求明細。
src/api/admin.rs:499
Function
status
(State(state): State<AppState>, headers: HeaderMap)
src/api/admin.rs:24
Method
stop
(&self)
src/upstream/chat_id_pool.rs:208
Function
strip_tool_calls
移除文字中的 tool_call 標記(串流給客戶端的可見文字不應含這些)。 用 find_tool_blocks 找出每個區塊範圍,整段切除;若沒區塊但 registry 非空, 嘗試把符合「裸 tool_call JSON」條件的物件也剝除(與 parse_tool_calls 同條件, 避免
src/toolcall/mod.rs:350
Function
submit
()
web/app.js:1450
Function
tool_call_block_takes_priority_over_naked_detection
()
src/toolcall/mod.rs:593
Function
tool_calls_event_lays_out_openai_shape
()
src/execution/translator.rs:196
Method
total_size
(&self)
src/upstream/chat_id_pool.rs:177
Function
transient_upstream_errors_are_swap_retryable
()
src/upstream/executor.rs:472
Function
truncate_caller
截斷呼叫者識別,避免在統計庫存放完整密鑰(僅留前綴供分組)。
src/execution/mod.rs:176
Function
two_separate_tool_call_blocks_parse_both
()
src/toolcall/mod.rs:465
Function
unclosed_tool_call_still_parses_inner_json
()
src/toolcall/mod.rs:453
Function
unknown_names_get_u_prefix_and_cleanup
()
src/toolcall/obfuscation.rs:53
Function
update_settings
(State(state): State<AppState>, headers: HeaderMap, body: axum::body::Bytes)
src/api/admin.rs:425
Function
upload
( State(state): State<AppState>, headers: HeaderMap, Query(query): Query<HashMap<String, String>>,
src/api/files.rs:14
Function
usage_field_passed_through
()
src/upstream/sse.rs:276
Function
usage_json_layout_is_stable
()
src/execution/translator.rs:219
Function
uuid4
()
src/util.rs:46
Function
verifyAll
()
web/app.js:951
Function
verify_account
單獨驗證帳號(live 探測 token;已移除瀏覽器刷新)。
src/api/admin.rs:169
Function
verify_admin
管理台認證:Bearer 必須等於 ADMIN_KEY 或在 API_KEYS 內。
src/auth.rs:98
Function
verify_all
全量巡检。
src/api/admin.rs:330
← previous
401–435 of 435, ranked by callers