@ai-sdk/quiverai 2.0.52 → 2.0.54
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 +20 -0
- package/dist/index.d.ts +104 -99
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +883 -1164
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @ai-sdk/quiverai
|
|
2
2
|
|
|
3
|
+
## 2.0.54
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8c65988]
|
|
8
|
+
- Updated dependencies [527a163]
|
|
9
|
+
- @ai-sdk/provider@4.0.21
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.53
|
|
11
|
+
- @ai-sdk/open-responses@2.0.58
|
|
12
|
+
|
|
13
|
+
## 2.0.53
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- ede5b89: chore: migrate package builds from tsup to tsdown
|
|
18
|
+
- Updated dependencies [ede5b89]
|
|
19
|
+
- @ai-sdk/open-responses@2.0.57
|
|
20
|
+
- @ai-sdk/provider@4.0.20
|
|
21
|
+
- @ai-sdk/provider-utils@5.0.52
|
|
22
|
+
|
|
3
23
|
## 2.0.52
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,128 +1,133 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createOpenResponses } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { FetchFunction, InferSchema } from '@ai-sdk/provider-utils';
|
|
6
|
-
|
|
1
|
+
import { ImageModelV4, LanguageModelV4, ProviderV4 } from "@ai-sdk/provider";
|
|
2
|
+
import { OpenResponsesCustomToolOptions as QuiverAICustomToolOptions, createOpenResponses } from "@ai-sdk/open-responses";
|
|
3
|
+
import { FetchFunction, InferSchema } from "@ai-sdk/provider-utils";
|
|
4
|
+
//#region src/quiverai-image-settings.d.ts
|
|
7
5
|
/**
|
|
8
6
|
* QuiverAI image model identifier.
|
|
9
7
|
*
|
|
10
8
|
* @see https://quiver.ai/
|
|
11
9
|
*/
|
|
12
10
|
type QuiverAIImageModelId = 'arrow-1' | 'arrow-1.1' | 'arrow-1.1-max' | 'arrow-2' | 'arrow-2-telos' | (string & {});
|
|
13
|
-
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/quiverai-language-model-settings.d.ts
|
|
14
13
|
type QuiverAILanguageModelId = 'arrow-2' | 'arrow-2-telos' | (string & {});
|
|
15
|
-
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/quiverai-provider.d.ts
|
|
16
16
|
interface QuiverAIProviderSettings {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
/**
|
|
18
|
+
* QuiverAI API key. Default value is taken from the `QUIVERAI_API_KEY`
|
|
19
|
+
* environment variable.
|
|
20
|
+
*/
|
|
21
|
+
apiKey?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Base URL for the API calls. Defaults to `https://api.quiver.ai/v1` and
|
|
24
|
+
* falls back to the `QUIVERAI_BASE_URL` environment variable.
|
|
25
|
+
*/
|
|
26
|
+
baseURL?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Custom headers to include in the requests.
|
|
29
|
+
*/
|
|
30
|
+
headers?: Record<string, string>;
|
|
31
|
+
/**
|
|
32
|
+
* Custom fetch implementation. You can use it as a middleware to intercept
|
|
33
|
+
* requests, or to provide a custom fetch implementation for e.g. testing.
|
|
34
|
+
*/
|
|
35
|
+
fetch?: FetchFunction;
|
|
36
36
|
}
|
|
37
37
|
interface QuiverAIProvider extends ProviderV4 {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Creates a language model for the QuiverAI Responses API.
|
|
40
|
+
*/
|
|
41
|
+
(modelId: QuiverAILanguageModelId): LanguageModelV4;
|
|
42
|
+
/**
|
|
43
|
+
* Creates a language model for the QuiverAI Responses API.
|
|
44
|
+
*/
|
|
45
|
+
languageModel(modelId: QuiverAILanguageModelId): LanguageModelV4;
|
|
46
|
+
/**
|
|
47
|
+
* Creates a model for image generation.
|
|
48
|
+
*/
|
|
49
|
+
image(modelId: QuiverAIImageModelId): ImageModelV4;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a model for image generation.
|
|
52
|
+
*/
|
|
53
|
+
imageModel(modelId: QuiverAIImageModelId): ImageModelV4;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated Use `embeddingModel` instead.
|
|
56
|
+
*/
|
|
57
|
+
textEmbeddingModel(modelId: string): never;
|
|
58
|
+
/**
|
|
59
|
+
* QuiverAI caller-executed tools.
|
|
60
|
+
*/
|
|
61
|
+
tools: ReturnType<typeof createOpenResponses>['tools'];
|
|
62
62
|
}
|
|
63
|
-
declare function createQuiverAI(options?: QuiverAIProviderSettings): QuiverAIProvider;
|
|
64
|
-
declare const quiverai: QuiverAIProvider;
|
|
65
|
-
|
|
63
|
+
export declare function createQuiverAI(options?: QuiverAIProviderSettings): QuiverAIProvider;
|
|
64
|
+
export declare const quiverai: QuiverAIProvider;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/quiverai-image-model-options.d.ts
|
|
66
67
|
/**
|
|
67
68
|
* Provider options schema for QuiverAI image generation.
|
|
68
69
|
*
|
|
69
70
|
* @see https://quiver.ai/
|
|
70
71
|
*/
|
|
71
|
-
declare const quiveraiImageModelOptionsSchema:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
} | undefined;
|
|
72
|
+
declare const quiveraiImageModelOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
73
|
+
operation?: "generate" | "vectorize" | "animate" | "edit" | undefined;
|
|
74
|
+
instructions?: string | undefined;
|
|
75
|
+
reasoningEffort?: "low" | "medium" | "high" | "xhigh" | undefined;
|
|
76
|
+
referenceImages?: ({
|
|
77
|
+
url: string;
|
|
78
|
+
} | {
|
|
79
|
+
base64: string;
|
|
80
|
+
})[] | undefined;
|
|
81
|
+
maxReviewSteps?: number | undefined;
|
|
82
|
+
attributes?: {
|
|
83
|
+
viewBox?: {
|
|
84
|
+
minX: number;
|
|
85
|
+
minY: number;
|
|
86
|
+
width: number;
|
|
87
|
+
height: number;
|
|
88
88
|
} | undefined;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
} | undefined;
|
|
90
|
+
temperature?: number | undefined;
|
|
91
|
+
topP?: number | undefined;
|
|
92
|
+
presencePenalty?: number | null | undefined;
|
|
93
|
+
maxOutputTokens?: number | undefined;
|
|
94
|
+
orchestratorMaxOutputTokens?: number | undefined;
|
|
95
|
+
shallowMaxOutputTokens?: number | undefined;
|
|
96
|
+
autoCrop?: boolean | undefined;
|
|
97
|
+
targetSize?: number | undefined;
|
|
97
98
|
}>;
|
|
98
99
|
type QuiverAIImageModelOptions = InferSchema<typeof quiveraiImageModelOptionsSchema>;
|
|
99
|
-
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/quiverai-language-model-options.d.ts
|
|
100
102
|
type QuiverAILanguageModelOptions = {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
/**
|
|
104
|
+
* Controls the amount of reasoning used by the model.
|
|
105
|
+
*/
|
|
106
|
+
reasoningEffort?: 'low' | 'medium' | 'high' | 'xhigh';
|
|
107
|
+
/**
|
|
108
|
+
* Requests the model's safe reasoning summary.
|
|
109
|
+
*/
|
|
110
|
+
reasoningSummary?: 'auto';
|
|
109
111
|
};
|
|
110
|
-
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/prepare-quiverai-image-reference.d.ts
|
|
111
114
|
type QuiverAIImageReference = {
|
|
112
|
-
|
|
115
|
+
url: string;
|
|
113
116
|
} | {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
/**
|
|
118
|
+
* Base64-encoded image data without a data URL prefix.
|
|
119
|
+
*/
|
|
120
|
+
base64: string;
|
|
118
121
|
};
|
|
119
122
|
type QuiverAIImageReferenceInput = string | URL | Uint8Array | ArrayBuffer;
|
|
120
123
|
/**
|
|
121
124
|
* Converts URL, binary, data URL, or base64 image input into the JSON-safe
|
|
122
125
|
* reference shape accepted by QuiverAI provider options.
|
|
123
126
|
*/
|
|
124
|
-
declare function prepareQuiverAIImageReference(input: QuiverAIImageReferenceInput): QuiverAIImageReference;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
export declare function prepareQuiverAIImageReference(input: QuiverAIImageReferenceInput): QuiverAIImageReference;
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/version.d.ts
|
|
130
|
+
export declare const VERSION: string;
|
|
131
|
+
//#endregion
|
|
132
|
+
export type { QuiverAICustomToolOptions, QuiverAIImageModelId, QuiverAIImageModelOptions, QuiverAIImageReference, QuiverAIImageReferenceInput, QuiverAILanguageModelId, QuiverAILanguageModelOptions, QuiverAIProvider, QuiverAIProviderSettings };
|
|
133
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/quiverai-image-settings.ts","../src/quiverai-language-model-settings.ts","../src/quiverai-provider.ts","../src/quiverai-image-model-options.ts","../src/quiverai-language-model-options.ts","../src/prepare-quiverai-image-reference.ts","../src/version.ts"],"mappings":";;;;;;;;;KAKY;;;KCLA;;;UC2BK;;;;;EAKf;;;;;EAMA;;;;EAKA,UAAU;;;;;EAMV,QAAQ;;UAGO,yBAAyB;;;;GAIvC,SAAS,0BAA0B;;;;EAKpC,cAAc,SAAS,0BAA0B;;;;EAKjD,MAAM,SAAS,uBAAuB;;;;EAKtC,WAAW,SAAS,uBAAuB;;;;EAK3C,mBAAmB;;;;EAKnB,OAAO,kBAAkB;;wBAKX,eACd,UAAS,2BACR;qBAuEU,UAAQ;;;;;;;;cCnJR,kEAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkHhC,4BAA4B,mBAC/B;;;KC/HG;;;;EAIV;;;;EAKA;;;;KCQU;EACN;;;;;EAKA;;KAGM,uCAER,MACA,aACA;;;;;wBAMY,8BACd,OAAO,8BACN;;;qBCpCU"}
|