feat: add Ollama Cloud quota provider (#544)
* feat: add Ollama Cloud quota provider Adds ollama-cloud quota provider that reads auth cookie from ~/.config/ollama-quota/cookie and fetches usage from ollama.com/settings. Returns 3 windows: session, weekly, and premium (X/Y). Reuses Ollama logo via provider alias. * docs(quota): add ollama-cloud provider entry to DOCUMENTATION.md
This commit is contained in:
@@ -18,6 +18,7 @@ import * as openrouter from './openrouter.js';
|
||||
import * as zai from './zai.js';
|
||||
import * as minimaxCodingPlan from './minimax-coding-plan.js';
|
||||
import * as minimaxCnCodingPlan from './minimax-cn-coding-plan.js';
|
||||
import * as ollamaCloud from './ollama-cloud.js';
|
||||
|
||||
const registry = {
|
||||
claude: {
|
||||
@@ -85,6 +86,12 @@ const registry = {
|
||||
providerName: minimaxCnCodingPlan.providerName,
|
||||
isConfigured: minimaxCnCodingPlan.isConfigured,
|
||||
fetchQuota: minimaxCnCodingPlan.fetchQuota
|
||||
},
|
||||
'ollama-cloud': {
|
||||
providerId: ollamaCloud.providerId,
|
||||
providerName: ollamaCloud.providerName,
|
||||
isConfigured: ollamaCloud.isConfigured,
|
||||
fetchQuota: ollamaCloud.fetchQuota
|
||||
}
|
||||
};
|
||||
|
||||
@@ -142,3 +149,4 @@ export const fetchZaiQuota = zai.fetchQuota;
|
||||
export const fetchNanoGptQuota = nanogpt.fetchQuota;
|
||||
export const fetchMinimaxCodingPlanQuota = minimaxCodingPlan.fetchQuota;
|
||||
export const fetchMinimaxCnCodingPlanQuota = minimaxCnCodingPlan.fetchQuota;
|
||||
export const fetchOllamaCloudQuota = ollamaCloud.fetchQuota;
|
||||
|
||||
Reference in New Issue
Block a user