Skip to content

Feature Request: a callback function with Chat and AsyncChat calls #28

@Karthik777

Description

@Karthik777

both claudette and cosette have cb func and is useful for response manipulation. Would be great if lisette can support that.

I've currently patched it for my usecase with

@patch
def r(self:Chat,hid=-1,cb:callable=None,**kw):
    o=self.hist[hid].content
    return cb(o,**kw) if cb else o

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions