Skip to content

Commit

Permalink
API: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oobabooga committed Jan 22, 2024
1 parent 821dd65 commit aa57511
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 aa57511

Please sign in to comment.