Open ssslakter opened 4 weeks ago
@jph00 @ncoop57 Could you please look into this?
Or another questing is whether cosette is generally supposed to support async calls.
I tested it on Client
and it works fine.
Also I played with structured
a bit to make it work with async for faster requests. (it's more like a draft, there in my fork https://github.com/ssslakter/cosette/commit/e202ff72d1029a83edf6039d39dc1437cd23528c)
No, we haven't done anything to make cosette async-compatible. But we'd be delighted to get PRs which do that!
Hi! I'm experiencing an issue when I use async openai client. It's not clear to me what is the root of the issue, but here's a minimal example
The code would fail with
TypeError: Object of type coroutine is not JSON serializable
.But while debugging I tried to remove the line in the
Chat.__call__
that appends to historyself.h += mk_toolres(res, ns=self.tools)
and it seems like it solves the issue somehow.I'm running all code in a notebook