Skip to content

feat(i18n): add model pricing section to configuration UI#771

Open
ba0f3 wants to merge 1 commit intonextlevelbuilder:devfrom
ba0f3:feature/llm-pricing-ui
Open

feat(i18n): add model pricing section to configuration UI#771
ba0f3 wants to merge 1 commit intonextlevelbuilder:devfrom
ba0f3:feature/llm-pricing-ui

Conversation

@ba0f3
Copy link
Copy Markdown
Contributor

@ba0f3 ba0f3 commented Apr 8, 2026

Summary

This enhancement improves the user experience by providing a clear interface for managing model pricing configurations.

NOTE: you should restart the gateway after changing model pricing.
image

Type

  • Feature
  • Bug fix
  • Hotfix (targeting main)
  • Refactor
  • Docs
  • CI/CD

Target Branch

Checklist

  • go build ./... passes
  • go build -tags sqliteonly ./... passes (if Go changes)
  • go vet ./... passes
  • Tests pass: go test -race ./...
  • Web UI builds: cd ui/web && pnpm build (if UI changes)
  • No hardcoded secrets or credentials
  • SQL queries use parameterized $1, $2 (no string concat)
  • New user-facing strings added to all 3 locales (en/vi/zh)
  • Migration version bumped in internal/upgrade/version.go (if new migration)

Test Plan

- Introduced new translations for model pricing in English, Vietnamese, and Chinese.
- Added a dedicated Model Pricing section in the configuration page, allowing users to manage pricing details for LLM models.
- Implemented functionality to add, edit, and remove model pricing entries, including input/output costs and cache usage.

This enhancement improves the user experience by providing a clear interface for managing model pricing configurations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant