Skip to content

Commit

Permalink
fix IndexError list index out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Jan 31, 2024
1 parent 06c9d1d commit 24cf032
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipes/VideoBots.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,9 +879,10 @@ def run(self, state: dict) -> typing.Iterator[str | None]:
state["output_text"] = output_text
yield f"Streaming{str(i + 1).translate(SUPERSCRIPT)} {model.value}..."

apply_response_formattings_suffix(
all_refs_list, state["output_text"], citation_style
)
if all_refs_list:
apply_response_formattings_suffix(
all_refs_list, state["output_text"], citation_style
)
state["output_audio"] = []
state["output_video"] = []

Expand Down

0 comments on commit 24cf032

Please sign in to comment.