@canarycoders/ai 0.8.0 → 0.8.1
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/dist/index.d.cts +14 -3
- package/dist/index.d.ts +14 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ export { b as RealtimeKind, c as RealtimeTool } from './realtime-BWDkXcj9.cjs';
|
|
|
6
6
|
type FetchLike = typeof globalThis.fetch;
|
|
7
7
|
|
|
8
8
|
/** Every provider the gateway can route to. */
|
|
9
|
-
type ProviderType = "gemini" | "vertex" | "openai" | "anthropic" | "xai" | "lmstudio" | "ollama" | "perplexity" | "elevenlabs" | "mlxaudio" | "vision" | "gcvision" | "zhipu" | "moonshot";
|
|
9
|
+
type ProviderType = "gemini" | "vertex" | "openai" | "anthropic" | "xai" | "lmstudio" | "ollama" | "perplexity" | "elevenlabs" | "mlxaudio" | "vision" | "gcvision" | "zhipu" | "moonshot" | "ocr" | "ltx";
|
|
10
10
|
/** Providers that serve text chat / completion. */
|
|
11
11
|
type ChatProvider = "gemini" | "vertex" | "openai" | "anthropic" | "xai" | "lmstudio" | "ollama" | "perplexity" | "zhipu" | "moonshot";
|
|
12
12
|
type ModelCapability = "chat" | "vision" | "image-generation" | "video-generation" | "text-to-speech" | "speech-to-text" | "image-recognition" | "face-detection" | "web-detection" | "conversation" | "sound-effect" | "music-generation" | "dialogue" | "realtime-voice" | "realtime-translate" | "realtime-transcribe" | "embeddings" | "reasoning";
|
|
@@ -509,15 +509,26 @@ interface ImageGenerationResult {
|
|
|
509
509
|
cost?: CostInfo;
|
|
510
510
|
}
|
|
511
511
|
interface VideoGenerateParams {
|
|
512
|
-
|
|
512
|
+
/** gemini/vertex = Veo 3.1, xai = Grok Imagine, ltx = local LTX-2 (no provider cost). */
|
|
513
|
+
provider: "gemini" | "vertex" | "xai" | "ltx";
|
|
513
514
|
prompt: string;
|
|
514
515
|
model?: string;
|
|
516
|
+
/**
|
|
517
|
+
* gemini/vertex/xai: "16:9" or "9:16". ltx: any "W:H"; picks a 64-grid size
|
|
518
|
+
* (16:9 = 768x448, 9:16 = 448x768) unless `resolution` is set.
|
|
519
|
+
*/
|
|
515
520
|
aspectRatio?: string;
|
|
521
|
+
/**
|
|
522
|
+
* gemini/vertex: "720p" | "1080p". xai: "480p" | "720p". ltx: pixels "WxH"
|
|
523
|
+
* (e.g. "768x512"), each side snapped to a multiple of 64 (256..1536).
|
|
524
|
+
*/
|
|
516
525
|
resolution?: string;
|
|
517
526
|
durationSeconds?: number;
|
|
518
527
|
numberOfVideos?: number;
|
|
519
|
-
/** public URL of
|
|
528
|
+
/** public URL (or data URI) of the start frame for image-to-video */
|
|
520
529
|
imageUrl?: string;
|
|
530
|
+
/** Veo only: final frame, interpolates first to last. Rejected by ltx. */
|
|
531
|
+
lastFrameUrl?: string;
|
|
521
532
|
/** id from `video.upload()` for image-to-video */
|
|
522
533
|
fileId?: string;
|
|
523
534
|
tag?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { b as RealtimeKind, c as RealtimeTool } from './realtime-BWDkXcj9.js';
|
|
|
6
6
|
type FetchLike = typeof globalThis.fetch;
|
|
7
7
|
|
|
8
8
|
/** Every provider the gateway can route to. */
|
|
9
|
-
type ProviderType = "gemini" | "vertex" | "openai" | "anthropic" | "xai" | "lmstudio" | "ollama" | "perplexity" | "elevenlabs" | "mlxaudio" | "vision" | "gcvision" | "zhipu" | "moonshot";
|
|
9
|
+
type ProviderType = "gemini" | "vertex" | "openai" | "anthropic" | "xai" | "lmstudio" | "ollama" | "perplexity" | "elevenlabs" | "mlxaudio" | "vision" | "gcvision" | "zhipu" | "moonshot" | "ocr" | "ltx";
|
|
10
10
|
/** Providers that serve text chat / completion. */
|
|
11
11
|
type ChatProvider = "gemini" | "vertex" | "openai" | "anthropic" | "xai" | "lmstudio" | "ollama" | "perplexity" | "zhipu" | "moonshot";
|
|
12
12
|
type ModelCapability = "chat" | "vision" | "image-generation" | "video-generation" | "text-to-speech" | "speech-to-text" | "image-recognition" | "face-detection" | "web-detection" | "conversation" | "sound-effect" | "music-generation" | "dialogue" | "realtime-voice" | "realtime-translate" | "realtime-transcribe" | "embeddings" | "reasoning";
|
|
@@ -509,15 +509,26 @@ interface ImageGenerationResult {
|
|
|
509
509
|
cost?: CostInfo;
|
|
510
510
|
}
|
|
511
511
|
interface VideoGenerateParams {
|
|
512
|
-
|
|
512
|
+
/** gemini/vertex = Veo 3.1, xai = Grok Imagine, ltx = local LTX-2 (no provider cost). */
|
|
513
|
+
provider: "gemini" | "vertex" | "xai" | "ltx";
|
|
513
514
|
prompt: string;
|
|
514
515
|
model?: string;
|
|
516
|
+
/**
|
|
517
|
+
* gemini/vertex/xai: "16:9" or "9:16". ltx: any "W:H"; picks a 64-grid size
|
|
518
|
+
* (16:9 = 768x448, 9:16 = 448x768) unless `resolution` is set.
|
|
519
|
+
*/
|
|
515
520
|
aspectRatio?: string;
|
|
521
|
+
/**
|
|
522
|
+
* gemini/vertex: "720p" | "1080p". xai: "480p" | "720p". ltx: pixels "WxH"
|
|
523
|
+
* (e.g. "768x512"), each side snapped to a multiple of 64 (256..1536).
|
|
524
|
+
*/
|
|
516
525
|
resolution?: string;
|
|
517
526
|
durationSeconds?: number;
|
|
518
527
|
numberOfVideos?: number;
|
|
519
|
-
/** public URL of
|
|
528
|
+
/** public URL (or data URI) of the start frame for image-to-video */
|
|
520
529
|
imageUrl?: string;
|
|
530
|
+
/** Veo only: final frame, interpolates first to last. Rejected by ltx. */
|
|
531
|
+
lastFrameUrl?: string;
|
|
521
532
|
/** id from `video.upload()` for image-to-video */
|
|
522
533
|
fileId?: string;
|
|
523
534
|
tag?: string;
|