mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 23:07:18 +00:00
Merge pull request #5712 from xiaobo121388/main
feat: add Ollama Cloud usage query action
This commit is contained in:
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(() => {
|
||||
|
||||
Reference in new issue
Block a user