Summary • Migrated all ratio-related sources into `setting/ratio_setting/` – `model_ratio.go` (renamed from model-ratio.go) – `cache_ratio.go` – `group_ratio.go` • Changed package name to `ratio_setting` and relocated initialization (`ratio_setting.InitRatioSettings()` in main). • Updated every import & call site: – Model / cache / completion / image ratio helpers – Group ratio helpers (`GetGroupRatio*`, `ContainsGroupRatio`, `CheckGroupRatio`, etc.) – JSON-serialization & update helpers (`*Ratio2JSONString`, `Update*RatioByJSONString`) • Adjusted controllers, middleware, relay helpers, services and models to reference the new package. • Removed obsolete `setting` / `operation_setting` imports; added missing `ratio_setting` imports. • Adopted idiomatic map iteration (`for key := range m`) where value is unused. • Ran static checks to ensure clean build. This commit centralises all ratio configuration (model, cache and group) in one cohesive module, simplifying future maintenance and improving code clarity.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| channel | Loading commit data... | |
| common | Loading commit data... | |
| common_handler | Loading commit data... | |
| constant | Loading commit data... | |
| helper | Loading commit data... | |
| claude_handler.go | Loading commit data... | |
| relay-audio.go | Loading commit data... | |
| relay-gemini.go | Loading commit data... | |
| relay-image.go | Loading commit data... | |
| relay-mj.go | Loading commit data... | |
| relay-responses.go | Loading commit data... | |
| relay-text.go | Loading commit data... | |
| relay_adaptor.go | Loading commit data... | |
| relay_embedding.go | Loading commit data... | |
| relay_rerank.go | Loading commit data... | |
| relay_task.go | Loading commit data... | |
| websocket.go | Loading commit data... |