Skip to content

Commit 1beb8d2

Browse files
committed
remove type cast
1 parent 03c794b commit 1beb8d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ai/ai/src/Chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ export const empty: Effect.Effect<Service> = Effect.gen(function*() {
380380
),
381381
streamText: Effect.fnUntraced(
382382
function*(options) {
383-
let parts = Chunk.empty<Response.StreamPart<any>>()
383+
let parts = Chunk.empty<Response.AnyPart>()
384384
return Stream.fromChannel(Channel.acquireUseRelease(
385385
semaphore.take(1).pipe(
386386
Effect.zipRight(Ref.get(history)),
@@ -389,7 +389,7 @@ export const empty: Effect.Effect<Service> = Effect.gen(function*() {
389389
(prompt) =>
390390
LanguageModel.streamText({ ...options, prompt }).pipe(
391391
Stream.mapChunks((chunk) => {
392-
parts = Chunk.appendAll(parts, chunk) as Chunk.Chunk<Response.StreamPart<any>>
392+
parts = Chunk.appendAll(parts, chunk)
393393
return chunk
394394
}),
395395
Stream.toChannel

0 commit comments

Comments
 (0)