Spaces:
Sleeping
Sleeping
File size: 169 Bytes
47d8d24 | 1 2 3 4 5 6 7 8 9 10 11 | def get_context(messages):
history=[]
for m in messages:
history.append(
f"{m.role}: {m.content}"
)
return "\n".join(history) |