Commit Graph

5 Commits

Author SHA1 Message Date
phamnazage-jpg
c32661fd2a test(runtime): wire new pricing importers into pipeline smoke and catalog mapping 2026-05-23 18:35:08 +08:00
phamnazage-jpg
5c5578a19b feat(region_pricing): 扩展非 token 统一计费字段,支持语音按字符/秒计费
Some checks failed
CI / go-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / docker-build (push) Has been cancelled
- 新增 region_pricing.pricing_mode / price_unit / flat_price 字段
- 新增 migration 016_region_pricing_non_token_units.sql
- officialPricingRecord 新增 PricingMode/PriceUnit/FlatPrice 字段
- detectModality 新增 audio 模态检测(voice/audio/speech)
- providerMetadata 新增 BAAI/ByteDance/China Mobile 元数据
- import_mobile_cloud_pricing.go: 解析语音计费表(CosyVoice/SenseVoice)
  - CosyVoice: 2元/万字符 → pricingMode=flat, priceUnit=10k_characters
  - SenseVoice: 0.0007元/秒 → pricingMode=flat, priceUnit=second
- mobileCloudProviderName 新增 cosyvoice/sensevoice → Alibaba 映射
- cmd/server: modelResponse 新增 pricingMode/priceUnit/flatPrice,API 字段说明同步更新
- 新增 TestModelsHandlerReturnsFlatPricingFields 测试
2026-05-22 14:51:38 +08:00
phamnazage-jpg
6c3569fb65 feat(pricing): add qwen hunyuan and huawei maas payg importers
Some checks failed
CI / go-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / docker-build (push) Has been cancelled
2026-05-22 12:13:54 +08:00
phamnazage-jpg
236dea8bf4 fix(pricing): support Perplexity/Vertex price format without dollar sign
Some checks failed
CI / go-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / docker-build (push) Has been cancelled
- official_pricing_import_common.go: make dollar sign optional in firstDollarPrice regex
- perplexity_pricing_lib.go: fix column detection to match 'Input ($/1M)' format
- also updated vertex and perplexity baseline snapshots
2026-05-22 09:18:14 +08:00
phamnazage-jpg
958245537a feat(imports): add real pricing and subscription collectors
Add plan catalog and subscription schema support, seed baselines, and real importers for core domestic subscriptions plus stable official pricing sources.

This commit also hardens the shared fetch layers so the importers can support live collection and database writes instead of relying on manual placeholders alone.
2026-05-15 22:32:57 +08:00