Initial open-source release (MIT): image2api AI gateway

Full Go backend + Vue 3 frontend, OpenAI-compatible API, multi-provider
account pools, billing/admin, Docker one-command deploy with auto HTTPS.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-25 22:59:04 +08:00
co-authored by Claude Opus 4.8
commit 606caaf047
142 changed files with 33648 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
// Credit display helpers. Credits and model prices are stored server-side as
// integer 积分 (points) — the single unit across the whole app. These helpers
// only format for display; they do NOT convert units.
/** Round to an integer 积分 value. */
export function points(value) {
return Math.round(Number(value || 0))
}
/** "<n> 积分" label with thousands separators. */
export function pointsLabel(value) {
return points(value).toLocaleString('en-US') + ' 积分'
}