gitdataai/libs/service/agent
ZhenYi 3a30150a41 refactor(service): remove all hardcoded model-name inference from OpenRouter sync
Drop all hard-coded model-name lookup tables that hardcoded specific
model names and prices:
- infer_context_length: remove GPT-4o/o1/Claude/etc. fallback table
- infer_max_output: remove GPT-4o/o1/etc. output token limits
- infer_pricing_fallback: remove entire hardcoded pricing table
- infer_capability_list: derive from architecture.modality only,
  no longer uses model name strings

Also fix stats: if upsert_version fails, skip counting and continue
rather than counting model but not version (which caused
versions_created=0 while pricing_created>0 inconsistency).
2026-04-16 22:47:24 +08:00
..
billing.rs init 2026-04-15 09:08:09 +08:00
code_review.rs init 2026-04-15 09:08:09 +08:00
mod.rs init 2026-04-15 09:08:09 +08:00
model_capability.rs init 2026-04-15 09:08:09 +08:00
model_parameter_profile.rs init 2026-04-15 09:08:09 +08:00
model_pricing.rs init 2026-04-15 09:08:09 +08:00
model_version.rs init 2026-04-15 09:08:09 +08:00
model.rs init 2026-04-15 09:08:09 +08:00
pr_summary.rs init 2026-04-15 09:08:09 +08:00
provider.rs init 2026-04-15 09:08:09 +08:00
sync.rs refactor(service): remove all hardcoded model-name inference from OpenRouter sync 2026-04-16 22:47:24 +08:00