Skip to content

Commit

Permalink
Merge pull request #5348 from oobabooga/dev
Browse files Browse the repository at this point in the history
Merge dev branch
  • Loading branch information
oobabooga committed Jan 22, 2024
2 parents 1343aa3 + aa57511 commit 837bd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/openai/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def convert_history(history):
system_message = ""

# Multimodal: convert OpenAI format to multimodal extension format
if any(isinstance(entry['content'], list) for entry in history):
if any('content' in entry and isinstance(entry['content'], list) for entry in history):
new_history = []
for entry in history:
if isinstance(entry['content'], list):
Expand Down

0 comments on commit 837bd88

Please sign in to comment.