Merge pull request #5712 from xiaobo121388/main

feat: add Ollama Cloud usage query action
This commit is contained in:
Wesley Liddick authored and GitHub committed 2026-08-18 14:05:27 +08:00
commit c792b44bb2
4 files changed
+111 -12

No files matched your search

@@ -562,6 +562,7 @@
<OllamaCloudUsageCell
v-if="account.ollama_cloud_usage?.eligible"
:account="account"
@updated="handleOllamaCloudUsageUpdated"
/>
<!-- Today stats row (requests, tokens, cost, user_cost) -->
<div
@@ -1513,6 +1514,10 @@ const handleQuotaResetAccountUpdated = (account: Account) => {
emit('account-updated', account)
}
const handleOllamaCloudUsageUpdated = (state: NonNullable<Account['ollama_cloud_usage']>) => {
emit('account-updated', { ...props.account, ollama_cloud_usage: state })
}
// ===== Key account today stats formatters =====
const formatKeyRequests = computed(() => {