Skip to content

Commit

Permalink
fix AiChat.empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Sep 19, 2024
1 parent 3f15e9c commit ecaa66a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ai/ai/src/AiChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class AiChatImpl implements AiChat.Service {
* @since 1.0.0
* @category constructors
*/
export const empty: Effect.Effect<AiChat.Service, never, Completions> = fromInput(Chunk.empty())
export const empty: Effect.Effect<AiChat.Service, never, Completions> = fromInput(AiInput.empty)

/**
* @since 1.0.0
Expand Down
6 changes: 6 additions & 0 deletions packages/ai/ai/src/AiInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ export const make = (input: AiInput.Input, options?: {
return Chunk.of(Message.fromInput(input, options?.role))
}

/**
* @since 1.0.0
* @category constructors
*/
export const empty: AiInput.Type = Chunk.empty()

/**
* @since 1.0.0
* @category schemas
Expand Down

0 comments on commit ecaa66a

Please sign in to comment.