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 c7e219b commit f2519df
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 f2519df

Please sign in to comment.