Skip to content

Commit

Permalink
Use undefined as the Next value in AsyncGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Apr 18, 2024
1 parent 3a729f7 commit de92509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ai/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class EdgeDBAI {
async *getRagAsyncGenerator(
message: string,
context: QueryContext = this.context
): AsyncGenerator<string, void, never> {
): AsyncGenerator<string, void, undefined> {
const response = await this.fetchRag({
model: this.options.model,
prompt: this.options.prompt,
Expand Down

0 comments on commit de92509

Please sign in to comment.