@goodandready/dsh-ollama-cloud-provider 0.1.27 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +4 -20
- package/README.ru.md +4 -4
- package/README.zh.md +4 -4
- package/lib/client.js +112 -362
- package/lib/index.d.ts +1 -19
- package/lib/index.js +83 -571
- package/package.json +4 -2
package/lib/index.d.ts
CHANGED
|
@@ -476,8 +476,6 @@ interface RouteDeps {
|
|
|
476
476
|
readonly verifyDesktop?: (req: IncomingMessage) => Promise<boolean>;
|
|
477
477
|
/** Same verifier for private reads; falls back to `verifyDesktop`. */
|
|
478
478
|
readonly verifyHost?: (req: IncomingMessage) => Promise<boolean>;
|
|
479
|
-
/** Test seam for local Ollama inventory and mutation routes. */
|
|
480
|
-
readonly localFetch?: typeof fetch;
|
|
481
479
|
/** Test seam for unsaved-endpoint discovery. */
|
|
482
480
|
readonly discoveryFetch?: typeof fetch;
|
|
483
481
|
}
|
|
@@ -519,22 +517,6 @@ interface EffectiveModel extends OllamaCloudModelMeta {
|
|
|
519
517
|
}
|
|
520
518
|
declare function effectiveModel(id: string, config: ResolvedConfig): EffectiveModel;
|
|
521
519
|
declare function describeModel(meta: EffectiveModel, config: ResolvedConfig): string;
|
|
522
|
-
interface ModelProbe {
|
|
523
|
-
readonly contextWindow?: number;
|
|
524
|
-
readonly input: readonly ('text' | 'image')[];
|
|
525
|
-
readonly reasoning: readonly string[];
|
|
526
|
-
readonly reasoningToggle: boolean;
|
|
527
|
-
readonly tools: boolean;
|
|
528
|
-
readonly available: boolean;
|
|
529
|
-
}
|
|
530
|
-
declare function probeModel(config: ResolvedConfig, model: string, fetchImpl?: typeof fetch): Promise<ModelProbe | undefined>;
|
|
531
|
-
/** Clear all probe entries, or only entries for one endpoint. */
|
|
532
|
-
declare function clearModelProbeCache(baseURL?: string): void;
|
|
533
|
-
declare function modelProbeCacheInfo(): Array<{
|
|
534
|
-
baseURL: string;
|
|
535
|
-
model: string;
|
|
536
|
-
at: number;
|
|
537
|
-
}>;
|
|
538
520
|
declare const name = "llm-ollama-cloud";
|
|
539
521
|
declare const inject: string[];
|
|
540
522
|
/**
|
|
@@ -543,5 +525,5 @@ declare const inject: string[];
|
|
|
543
525
|
* without a restart.
|
|
544
526
|
*/
|
|
545
527
|
declare function apply(ctx: Context, config: Config): void;
|
|
546
|
-
export { type CommandDeps, Config, type Config as OllamaCloudConfig, OllamaCloudAdapter, type OllamaCloudAdapterDeps, PROVIDER, type ResolvedConfig, type ResolvedKey, type RouteDeps, type TransportId, type UsageReport, type UsageResult, type UsageWindow, apply, applyCommands, applyRoutes, classifyResponseError, clearCatalogCache,
|
|
528
|
+
export { type CommandDeps, Config, type Config as OllamaCloudConfig, OllamaCloudAdapter, type OllamaCloudAdapterDeps, PROVIDER, type ResolvedConfig, type ResolvedKey, type RouteDeps, type TransportId, type UsageReport, type UsageResult, type UsageWindow, apply, applyCommands, applyRoutes, classifyResponseError, clearCatalogCache, createKeyPool, createKeyResolver, createUsageReader, describeModel, effectiveModel, inject, name, normalizeBalance, normalizeUsage, resolveConfig };
|
|
547
529
|
//# sourceMappingURL=index.d.ts.map
|