@ai-sdk/provider 0.0.10 → 0.0.12
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.mts +16 -0
- package/dist/index.d.ts +16 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -54,12 +54,23 @@ type EmbeddingModelV1<VALUE> = {
|
|
54
54
|
Abort signal for cancelling the operation.
|
55
55
|
*/
|
56
56
|
abortSignal?: AbortSignal;
|
57
|
+
/**
|
58
|
+
Additional HTTP headers to be sent with the request.
|
59
|
+
Only applicable for HTTP-based providers.
|
60
|
+
*/
|
61
|
+
headers?: Record<string, string | undefined>;
|
57
62
|
}): PromiseLike<{
|
58
63
|
/**
|
59
64
|
Generated embeddings. They are in the same order as the input values.
|
60
65
|
*/
|
61
66
|
embeddings: Array<EmbeddingModelV1Embedding>;
|
62
67
|
/**
|
68
|
+
Token usage. We only have input tokens for embeddings.
|
69
|
+
*/
|
70
|
+
usage?: {
|
71
|
+
tokens: number;
|
72
|
+
};
|
73
|
+
/**
|
63
74
|
Optional raw response information for debugging purposes.
|
64
75
|
*/
|
65
76
|
rawResponse?: {
|
@@ -501,6 +512,11 @@ type LanguageModelV1CallSettings = {
|
|
501
512
|
Abort signal for cancelling the operation.
|
502
513
|
*/
|
503
514
|
abortSignal?: AbortSignal;
|
515
|
+
/**
|
516
|
+
Additional HTTP headers to be sent with the request.
|
517
|
+
Only applicable for HTTP-based providers.
|
518
|
+
*/
|
519
|
+
headers?: Record<string, string | undefined>;
|
504
520
|
};
|
505
521
|
|
506
522
|
/**
|
package/dist/index.d.ts
CHANGED
@@ -54,12 +54,23 @@ type EmbeddingModelV1<VALUE> = {
|
|
54
54
|
Abort signal for cancelling the operation.
|
55
55
|
*/
|
56
56
|
abortSignal?: AbortSignal;
|
57
|
+
/**
|
58
|
+
Additional HTTP headers to be sent with the request.
|
59
|
+
Only applicable for HTTP-based providers.
|
60
|
+
*/
|
61
|
+
headers?: Record<string, string | undefined>;
|
57
62
|
}): PromiseLike<{
|
58
63
|
/**
|
59
64
|
Generated embeddings. They are in the same order as the input values.
|
60
65
|
*/
|
61
66
|
embeddings: Array<EmbeddingModelV1Embedding>;
|
62
67
|
/**
|
68
|
+
Token usage. We only have input tokens for embeddings.
|
69
|
+
*/
|
70
|
+
usage?: {
|
71
|
+
tokens: number;
|
72
|
+
};
|
73
|
+
/**
|
63
74
|
Optional raw response information for debugging purposes.
|
64
75
|
*/
|
65
76
|
rawResponse?: {
|
@@ -501,6 +512,11 @@ type LanguageModelV1CallSettings = {
|
|
501
512
|
Abort signal for cancelling the operation.
|
502
513
|
*/
|
503
514
|
abortSignal?: AbortSignal;
|
515
|
+
/**
|
516
|
+
Additional HTTP headers to be sent with the request.
|
517
|
+
Only applicable for HTTP-based providers.
|
518
|
+
*/
|
519
|
+
headers?: Record<string, string | undefined>;
|
504
520
|
};
|
505
521
|
|
506
522
|
/**
|