@ai-sdk/quiverai 2.0.47 → 2.0.50

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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # @ai-sdk/quiverai
2
2
 
3
+ ## 2.0.50
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [af9597b]
8
+ - Updated dependencies [bc49f78]
9
+ - @ai-sdk/provider-utils@5.0.49
10
+ - @ai-sdk/open-responses@2.0.54
11
+
12
+ ## 2.0.49
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [be877ff]
17
+ - @ai-sdk/provider-utils@5.0.48
18
+ - @ai-sdk/open-responses@2.0.53
19
+
20
+ ## 2.0.48
21
+
22
+ ### Patch Changes
23
+
24
+ - 2147b86: Add QuiverAI Arrow 2 language models through the Responses API, with provider-local reasoning validation, stateless history replay, and workflow serialization that preserves QuiverAI configuration and behavior.
25
+
26
+ Add reusable Open Responses transport configuration, response-error metadata extraction for generation and streaming, cache-write accounting, and OpenAI-compatible custom tools. Preserve text, image, and file custom-tool results and complete tool inputs when streaming deltas are omitted.
27
+
28
+ - Updated dependencies [2147b86]
29
+ - @ai-sdk/open-responses@2.0.52
30
+
3
31
  ## 2.0.47
4
32
 
5
33
  ### Patch Changes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AI SDK - QuiverAI Provider
2
2
 
3
- The **QuiverAI provider** for the [AI SDK](https://ai-sdk.dev/docs) adds image generation support for the [QuiverAI](https://quiver.ai/) API. QuiverAI generates SVG documents from text prompts and can also vectorize raster images.
3
+ The **QuiverAI provider** for the [AI SDK](https://ai-sdk.dev/docs) adds Arrow language-model and image-generation support for the [QuiverAI](https://quiver.ai/) API.
4
4
 
5
5
  > **Deploying to Vercel?** With Vercel's AI Gateway you can access many models from other providers — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
6
6
 
@@ -45,6 +45,20 @@ fs.writeFileSync(filename, image.uint8Array);
45
45
  console.log(`Image saved to ${filename}`);
46
46
  ```
47
47
 
48
+ ## Text Generation Example
49
+
50
+ ```ts
51
+ import { quiverai } from '@ai-sdk/quiverai';
52
+ import { generateText } from 'ai';
53
+
54
+ const { text } = await generateText({
55
+ model: quiverai('arrow-2'),
56
+ prompt: 'Design a simple compass icon and explain the visual choices.',
57
+ });
58
+
59
+ console.log(text);
60
+ ```
61
+
48
62
  ## Documentation
49
63
 
50
64
  Please check out the **[QuiverAI provider](https://ai-sdk.dev/providers/ai-sdk-providers/quiverai)** for more information.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
- import { ProviderV4, ImageModelV4 } from '@ai-sdk/provider';
1
+ import { ProviderV4, LanguageModelV4, ImageModelV4 } from '@ai-sdk/provider';
2
+ import { createOpenResponses } from '@ai-sdk/open-responses';
3
+ export { OpenResponsesCustomToolOptions as QuiverAICustomToolOptions } from '@ai-sdk/open-responses';
2
4
  import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
3
5
  import { FetchFunction, InferSchema } from '@ai-sdk/provider-utils';
4
6
 
@@ -9,6 +11,8 @@ import { FetchFunction, InferSchema } from '@ai-sdk/provider-utils';
9
11
  */
10
12
  type QuiverAIImageModelId = 'arrow-1' | 'arrow-1.1' | 'arrow-1.1-max' | 'arrow-2' | 'arrow-2-telos' | (string & {});
11
13
 
14
+ type QuiverAILanguageModelId = 'arrow-2' | 'arrow-2-telos' | (string & {});
15
+
12
16
  interface QuiverAIProviderSettings {
13
17
  /**
14
18
  * QuiverAI API key. Default value is taken from the `QUIVERAI_API_KEY`
@@ -31,6 +35,14 @@ interface QuiverAIProviderSettings {
31
35
  fetch?: FetchFunction;
32
36
  }
33
37
  interface QuiverAIProvider extends ProviderV4 {
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;
34
46
  /**
35
47
  * Creates a model for image generation.
36
48
  */
@@ -43,6 +55,10 @@ interface QuiverAIProvider extends ProviderV4 {
43
55
  * @deprecated Use `embeddingModel` instead.
44
56
  */
45
57
  textEmbeddingModel(modelId: string): never;
58
+ /**
59
+ * QuiverAI caller-executed tools.
60
+ */
61
+ tools: ReturnType<typeof createOpenResponses>['tools'];
46
62
  }
47
63
  declare function createQuiverAI(options?: QuiverAIProviderSettings): QuiverAIProvider;
48
64
  declare const quiverai: QuiverAIProvider;
@@ -81,6 +97,17 @@ declare const quiveraiImageModelOptionsSchema: _ai_sdk_provider_utils.LazySchema
81
97
  }>;
82
98
  type QuiverAIImageModelOptions = InferSchema<typeof quiveraiImageModelOptionsSchema>;
83
99
 
100
+ type QuiverAILanguageModelOptions = {
101
+ /**
102
+ * Controls the amount of reasoning used by the model.
103
+ */
104
+ reasoningEffort?: 'low' | 'medium' | 'high' | 'xhigh';
105
+ /**
106
+ * Requests the model's safe reasoning summary.
107
+ */
108
+ reasoningSummary?: 'auto';
109
+ };
110
+
84
111
  type QuiverAIImageReference = {
85
112
  url: string;
86
113
  } | {
@@ -98,4 +125,4 @@ declare function prepareQuiverAIImageReference(input: QuiverAIImageReferenceInpu
98
125
 
99
126
  declare const VERSION: string;
100
127
 
101
- export { type QuiverAIImageModelId, type QuiverAIImageModelOptions, type QuiverAIImageReference, type QuiverAIImageReferenceInput, type QuiverAIProvider, type QuiverAIProviderSettings, VERSION, createQuiverAI, prepareQuiverAIImageReference, quiverai };
128
+ export { type QuiverAIImageModelId, type QuiverAIImageModelOptions, type QuiverAIImageReference, type QuiverAIImageReferenceInput, type QuiverAILanguageModelId, type QuiverAILanguageModelOptions, type QuiverAIProvider, type QuiverAIProviderSettings, VERSION, createQuiverAI, prepareQuiverAIImageReference, quiverai };