The letter

One letter a week, starting soon.

The week's signal, what shipped, what is worth running tonight, and the editor's note. No tracking, no ads, nothing else.

We keep your address, your language and the date you joined, nothing else. Every letter has a one-click unsubscribe link that deletes the record.

← Accept All   Archive
Qiita (LLM)Japan

ContextVarで履歴を分離、会話の混入が2件から0件に

10.28

ContextVarに会話履歴を入れたら、asyncioの別タスクには混ざらない? リストにappend()する設計なら混ざる。自分は今日、2会話だけのコードで確かめていて、両方の履歴に相手の質問が入った。ContextVarを使っているだけで、履歴を分離できた扱いにするの...

Read at Qiita (LLM) ↗

More from Qiita (LLM) on Accept All

More from Qiita (LLM) on Accept All.