noosphere 0.7.0 → 0.9.0
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/README.md +95 -6
- package/dist/index.cjs +695 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -2
- package/dist/index.d.ts +34 -2
- package/dist/index.js +693 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -92,6 +92,7 @@ interface ModelInfo {
|
|
|
92
92
|
id: string;
|
|
93
93
|
provider: string;
|
|
94
94
|
name: string;
|
|
95
|
+
description?: string;
|
|
95
96
|
modality: Modality;
|
|
96
97
|
local: boolean;
|
|
97
98
|
cost: {
|
|
@@ -317,7 +318,7 @@ declare class Noosphere {
|
|
|
317
318
|
getProviders(modality?: Modality): Promise<ProviderInfo[]>;
|
|
318
319
|
getModels(modality?: Modality): Promise<ModelInfo[]>;
|
|
319
320
|
getModel(provider: string, modelId: string): Promise<ModelInfo | null>;
|
|
320
|
-
syncModels(): Promise<SyncResult>;
|
|
321
|
+
syncModels(modality?: Modality): Promise<SyncResult>;
|
|
321
322
|
getUsage(options?: UsageQueryOptions): UsageSummary;
|
|
322
323
|
installModel(name: string): Promise<AsyncGenerator<OllamaPullProgress>>;
|
|
323
324
|
uninstallModel(name: string): Promise<void>;
|
|
@@ -406,6 +407,37 @@ declare class OpenAICompatProvider implements NoosphereProvider {
|
|
|
406
407
|
/** Auto-detect running OpenAI-compatible servers on common ports */
|
|
407
408
|
declare function detectOpenAICompatServers(): Promise<OpenAICompatProvider[]>;
|
|
408
409
|
|
|
410
|
+
declare class OpenAIMediaProvider implements NoosphereProvider {
|
|
411
|
+
private apiKey;
|
|
412
|
+
readonly id = "openai-media";
|
|
413
|
+
readonly name = "OpenAI (Image, Video, TTS, STT)";
|
|
414
|
+
readonly modalities: Modality[];
|
|
415
|
+
readonly isLocal = false;
|
|
416
|
+
private modelsCache;
|
|
417
|
+
constructor(apiKey: string);
|
|
418
|
+
ping(): Promise<boolean>;
|
|
419
|
+
listModels(modality?: Modality): Promise<ModelInfo[]>;
|
|
420
|
+
image(options: ImageOptions): Promise<NoosphereResult>;
|
|
421
|
+
speak(options: SpeakOptions): Promise<NoosphereResult>;
|
|
422
|
+
video(options: VideoOptions): Promise<NoosphereResult>;
|
|
423
|
+
private getCapabilities;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
declare class GoogleMediaProvider implements NoosphereProvider {
|
|
427
|
+
private apiKey;
|
|
428
|
+
readonly id = "google-media";
|
|
429
|
+
readonly name = "Google (Image, Video, TTS)";
|
|
430
|
+
readonly modalities: Modality[];
|
|
431
|
+
readonly isLocal = false;
|
|
432
|
+
private modelsCache;
|
|
433
|
+
constructor(apiKey: string);
|
|
434
|
+
ping(): Promise<boolean>;
|
|
435
|
+
listModels(modality?: Modality): Promise<ModelInfo[]>;
|
|
436
|
+
image(options: ImageOptions): Promise<NoosphereResult>;
|
|
437
|
+
speak(options: SpeakOptions): Promise<NoosphereResult>;
|
|
438
|
+
video(options: VideoOptions): Promise<NoosphereResult>;
|
|
439
|
+
}
|
|
440
|
+
|
|
409
441
|
interface ProviderLogo {
|
|
410
442
|
svg?: string;
|
|
411
443
|
png?: string;
|
|
@@ -424,4 +456,4 @@ declare function getProviderLogo(providerId: string | undefined | null): Provide
|
|
|
424
456
|
declare function getAllProviderLogos(): Record<string, ProviderLogo>;
|
|
425
457
|
declare const PROVIDER_LOGOS: Record<string, ProviderLogo>;
|
|
426
458
|
|
|
427
|
-
export { AudioCraftProvider, type BaseOptions, type ChatOptions, HfLocalProvider, type ImageOptions, type LocalModelInfo, type LocalServiceConfig, type Modality, type ModelInfo, type ModelStatus, type MusicOptions, Noosphere, type NoosphereConfig, NoosphereError, type NoosphereErrorCode, type NoosphereProvider, type NoosphereResult, type NoosphereStream, type OllamaModelDetail, OllamaProvider, type OllamaPullProgress, type OllamaRunningModel, type OpenAICompatConfig, OpenAICompatProvider, PROVIDER_IDS, PROVIDER_LOGOS, type ProviderInfo, type ProviderLogo$1 as ProviderLogo, type SpeakOptions, type StreamEvent, type SyncResult, type TranscriptionOptions, type TranscriptionResult, type UsageEvent, type UsageQueryOptions, type UsageSummary, type VideoOptions, WhisperLocalProvider, detectOpenAICompatServers, getAllProviderLogos, getProviderLogo };
|
|
459
|
+
export { AudioCraftProvider, type BaseOptions, type ChatOptions, GoogleMediaProvider, HfLocalProvider, type ImageOptions, type LocalModelInfo, type LocalServiceConfig, type Modality, type ModelInfo, type ModelStatus, type MusicOptions, Noosphere, type NoosphereConfig, NoosphereError, type NoosphereErrorCode, type NoosphereProvider, type NoosphereResult, type NoosphereStream, type OllamaModelDetail, OllamaProvider, type OllamaPullProgress, type OllamaRunningModel, type OpenAICompatConfig, OpenAICompatProvider, OpenAIMediaProvider, PROVIDER_IDS, PROVIDER_LOGOS, type ProviderInfo, type ProviderLogo$1 as ProviderLogo, type SpeakOptions, type StreamEvent, type SyncResult, type TranscriptionOptions, type TranscriptionResult, type UsageEvent, type UsageQueryOptions, type UsageSummary, type VideoOptions, WhisperLocalProvider, detectOpenAICompatServers, getAllProviderLogos, getProviderLogo };
|
package/dist/index.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ interface ModelInfo {
|
|
|
92
92
|
id: string;
|
|
93
93
|
provider: string;
|
|
94
94
|
name: string;
|
|
95
|
+
description?: string;
|
|
95
96
|
modality: Modality;
|
|
96
97
|
local: boolean;
|
|
97
98
|
cost: {
|
|
@@ -317,7 +318,7 @@ declare class Noosphere {
|
|
|
317
318
|
getProviders(modality?: Modality): Promise<ProviderInfo[]>;
|
|
318
319
|
getModels(modality?: Modality): Promise<ModelInfo[]>;
|
|
319
320
|
getModel(provider: string, modelId: string): Promise<ModelInfo | null>;
|
|
320
|
-
syncModels(): Promise<SyncResult>;
|
|
321
|
+
syncModels(modality?: Modality): Promise<SyncResult>;
|
|
321
322
|
getUsage(options?: UsageQueryOptions): UsageSummary;
|
|
322
323
|
installModel(name: string): Promise<AsyncGenerator<OllamaPullProgress>>;
|
|
323
324
|
uninstallModel(name: string): Promise<void>;
|
|
@@ -406,6 +407,37 @@ declare class OpenAICompatProvider implements NoosphereProvider {
|
|
|
406
407
|
/** Auto-detect running OpenAI-compatible servers on common ports */
|
|
407
408
|
declare function detectOpenAICompatServers(): Promise<OpenAICompatProvider[]>;
|
|
408
409
|
|
|
410
|
+
declare class OpenAIMediaProvider implements NoosphereProvider {
|
|
411
|
+
private apiKey;
|
|
412
|
+
readonly id = "openai-media";
|
|
413
|
+
readonly name = "OpenAI (Image, Video, TTS, STT)";
|
|
414
|
+
readonly modalities: Modality[];
|
|
415
|
+
readonly isLocal = false;
|
|
416
|
+
private modelsCache;
|
|
417
|
+
constructor(apiKey: string);
|
|
418
|
+
ping(): Promise<boolean>;
|
|
419
|
+
listModels(modality?: Modality): Promise<ModelInfo[]>;
|
|
420
|
+
image(options: ImageOptions): Promise<NoosphereResult>;
|
|
421
|
+
speak(options: SpeakOptions): Promise<NoosphereResult>;
|
|
422
|
+
video(options: VideoOptions): Promise<NoosphereResult>;
|
|
423
|
+
private getCapabilities;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
declare class GoogleMediaProvider implements NoosphereProvider {
|
|
427
|
+
private apiKey;
|
|
428
|
+
readonly id = "google-media";
|
|
429
|
+
readonly name = "Google (Image, Video, TTS)";
|
|
430
|
+
readonly modalities: Modality[];
|
|
431
|
+
readonly isLocal = false;
|
|
432
|
+
private modelsCache;
|
|
433
|
+
constructor(apiKey: string);
|
|
434
|
+
ping(): Promise<boolean>;
|
|
435
|
+
listModels(modality?: Modality): Promise<ModelInfo[]>;
|
|
436
|
+
image(options: ImageOptions): Promise<NoosphereResult>;
|
|
437
|
+
speak(options: SpeakOptions): Promise<NoosphereResult>;
|
|
438
|
+
video(options: VideoOptions): Promise<NoosphereResult>;
|
|
439
|
+
}
|
|
440
|
+
|
|
409
441
|
interface ProviderLogo {
|
|
410
442
|
svg?: string;
|
|
411
443
|
png?: string;
|
|
@@ -424,4 +456,4 @@ declare function getProviderLogo(providerId: string | undefined | null): Provide
|
|
|
424
456
|
declare function getAllProviderLogos(): Record<string, ProviderLogo>;
|
|
425
457
|
declare const PROVIDER_LOGOS: Record<string, ProviderLogo>;
|
|
426
458
|
|
|
427
|
-
export { AudioCraftProvider, type BaseOptions, type ChatOptions, HfLocalProvider, type ImageOptions, type LocalModelInfo, type LocalServiceConfig, type Modality, type ModelInfo, type ModelStatus, type MusicOptions, Noosphere, type NoosphereConfig, NoosphereError, type NoosphereErrorCode, type NoosphereProvider, type NoosphereResult, type NoosphereStream, type OllamaModelDetail, OllamaProvider, type OllamaPullProgress, type OllamaRunningModel, type OpenAICompatConfig, OpenAICompatProvider, PROVIDER_IDS, PROVIDER_LOGOS, type ProviderInfo, type ProviderLogo$1 as ProviderLogo, type SpeakOptions, type StreamEvent, type SyncResult, type TranscriptionOptions, type TranscriptionResult, type UsageEvent, type UsageQueryOptions, type UsageSummary, type VideoOptions, WhisperLocalProvider, detectOpenAICompatServers, getAllProviderLogos, getProviderLogo };
|
|
459
|
+
export { AudioCraftProvider, type BaseOptions, type ChatOptions, GoogleMediaProvider, HfLocalProvider, type ImageOptions, type LocalModelInfo, type LocalServiceConfig, type Modality, type ModelInfo, type ModelStatus, type MusicOptions, Noosphere, type NoosphereConfig, NoosphereError, type NoosphereErrorCode, type NoosphereProvider, type NoosphereResult, type NoosphereStream, type OllamaModelDetail, OllamaProvider, type OllamaPullProgress, type OllamaRunningModel, type OpenAICompatConfig, OpenAICompatProvider, OpenAIMediaProvider, PROVIDER_IDS, PROVIDER_LOGOS, type ProviderInfo, type ProviderLogo$1 as ProviderLogo, type SpeakOptions, type StreamEvent, type SyncResult, type TranscriptionOptions, type TranscriptionResult, type UsageEvent, type UsageQueryOptions, type UsageSummary, type VideoOptions, WhisperLocalProvider, detectOpenAICompatServers, getAllProviderLogos, getProviderLogo };
|