Skip to content

Commit

Permalink
fix: 更新 AiTextGenerationOutput 类型以支持 Uint8Array
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Dec 25, 2024
1 parent 67c61c3 commit 20283e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib/core/src/config/binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface APIGuardBinding {
fetch: (request: Request) => Promise<Response>;
}

export type AiTextGenerationOutput = ReadableStream | { response?: string };
export type AiTextGenerationOutput = ReadableStream<Uint8Array> | { response?: string };
export type AiTextToImageOutput = ReadableStream<Uint8Array> | { image?: string };

export abstract class WorkerAIBinding {
Expand Down

0 comments on commit 20283e1

Please sign in to comment.