Repository navigation
Releases
Releases · neko233-com/ai-price-lib-go
v0.2.0
Go integration and live configuration
store.Openinitializesaiprice.jsonin the process working directory when absent and hot-reloads valid changes. Invalid changes retain the last valid snapshot and expose an error inStatus.- Concurrent cooperating writers use file locking. Pricing and usage cover text, audio, video and configurable metered components.
- Embedded snapshots include 11,378 provider-qualified text model entries and 16,938 additional price components from Models.dev and LiteLLM, with provenance and license information. Explicit online refresh is available.
- English is the default README; a Chinese README is included. Windows, Linux and macOS amd64/arm64 archives include SHA-256 checksums. Unix executable permissions are corrected from v0.1.0.
Install: go get github.com/neko233-com/ai-price-lib-go@v0.2.0.
Snapshots are estimates, not a guarantee of all models or billing variants. Prices, currency rates, tiers and provider-specific details must be verified; cache/tier/resolution selection is explicit. New media fields cannot be read by v0.1.0, so back up existing ledgers and do not mix versions for writes. See the README for concurrency and persistence limits.
v0.1.0
首个公开版本:Go 1.27 AI 用量账本、模型价格与多币种换算。
- 离线内置 7,987 个供应商模型基础报价,支持在线刷新和安全合并。
- 管理 Agent、模型、汇率和用量;历史记录保留价格快照。
- Windows、Linux、macOS 的 amd64 / arm64 命令行程序及 SHA-256 校验文件。
模型目录来自 Models.dev,价格仅供估算:分层、缓存、音视频及其他特殊计费不会自动计算。请核对服务商实际价格。使用方法见 README。