@blinkdotnew/sdk 2.0.2 → 2.0.3
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 +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5548 -0
- package/dist/index.mjs +5529 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -836,7 +836,7 @@ declare class HttpClient {
|
|
|
836
836
|
signal?: AbortSignal;
|
|
837
837
|
}): Promise<BlinkResponse<any>>;
|
|
838
838
|
/**
|
|
839
|
-
* Stream AI text generation
|
|
839
|
+
* Stream AI text generation - uses Vercel AI SDK's pipeUIMessageStreamToResponse (Data Stream Protocol)
|
|
840
840
|
*/
|
|
841
841
|
streamAiText(prompt: string, options: {
|
|
842
842
|
model?: string | undefined;
|
|
@@ -860,7 +860,7 @@ declare class HttpClient {
|
|
|
860
860
|
signal?: AbortSignal;
|
|
861
861
|
}): Promise<BlinkResponse<any>>;
|
|
862
862
|
/**
|
|
863
|
-
* Stream AI object generation
|
|
863
|
+
* Stream AI object generation - uses Vercel AI SDK's pipeTextStreamToResponse
|
|
864
864
|
*/
|
|
865
865
|
streamAiObject(prompt: string, options: {
|
|
866
866
|
model?: string | undefined;
|
|
@@ -941,10 +941,10 @@ declare class HttpClient {
|
|
|
941
941
|
private parseResponse;
|
|
942
942
|
private handleErrorResponse;
|
|
943
943
|
/**
|
|
944
|
-
* Parse Vercel AI SDK
|
|
945
|
-
*
|
|
944
|
+
* Parse Vercel AI SDK v5 Data Stream Protocol (Server-Sent Events)
|
|
945
|
+
* Supports all event types from the UI Message Stream protocol
|
|
946
946
|
*/
|
|
947
|
-
private
|
|
947
|
+
private parseDataStreamProtocol;
|
|
948
948
|
}
|
|
949
949
|
|
|
950
950
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -836,7 +836,7 @@ declare class HttpClient {
|
|
|
836
836
|
signal?: AbortSignal;
|
|
837
837
|
}): Promise<BlinkResponse<any>>;
|
|
838
838
|
/**
|
|
839
|
-
* Stream AI text generation
|
|
839
|
+
* Stream AI text generation - uses Vercel AI SDK's pipeUIMessageStreamToResponse (Data Stream Protocol)
|
|
840
840
|
*/
|
|
841
841
|
streamAiText(prompt: string, options: {
|
|
842
842
|
model?: string | undefined;
|
|
@@ -860,7 +860,7 @@ declare class HttpClient {
|
|
|
860
860
|
signal?: AbortSignal;
|
|
861
861
|
}): Promise<BlinkResponse<any>>;
|
|
862
862
|
/**
|
|
863
|
-
* Stream AI object generation
|
|
863
|
+
* Stream AI object generation - uses Vercel AI SDK's pipeTextStreamToResponse
|
|
864
864
|
*/
|
|
865
865
|
streamAiObject(prompt: string, options: {
|
|
866
866
|
model?: string | undefined;
|
|
@@ -941,10 +941,10 @@ declare class HttpClient {
|
|
|
941
941
|
private parseResponse;
|
|
942
942
|
private handleErrorResponse;
|
|
943
943
|
/**
|
|
944
|
-
* Parse Vercel AI SDK
|
|
945
|
-
*
|
|
944
|
+
* Parse Vercel AI SDK v5 Data Stream Protocol (Server-Sent Events)
|
|
945
|
+
* Supports all event types from the UI Message Stream protocol
|
|
946
946
|
*/
|
|
947
|
-
private
|
|
947
|
+
private parseDataStreamProtocol;
|
|
948
948
|
}
|
|
949
949
|
|
|
950
950
|
/**
|