Spaces:
Build error
Build error
Update app.py
Browse files196 unmodified lines197198199200201202203196 unmodified lineschat_history.append((message, assistant_message))yield chat_historyfor chunk in response:delta = chunk.choices[0].delta.get("content", "")assistant_message += deltachat_history[-1] = (message, assistant_message)yield chat_history196 unmodified lines197198199200201202203204196 unmodified lineschat_history.append((message, assistant_message))yield chat_historyfor chunk in response:# "content"가 None인 경우 빈 문자열로 처리하여 오류 방지delta = chunk.choices[0].delta.get("content") or ""assistant_message += deltachat_history[-1] = (message, assistant_message)yield chat_history
app.py+2-1