feat: Add 'meta' role to store meta info to session, like source of input content.

This commit is contained in:
Eugen Eisler
2024-10-05 17:53:41 +02:00
parent ca6660585d
commit 81d60b4292

View File

@@ -34,7 +34,7 @@ func (o *Chatter) Send(request *common.ChatRequest, opts *common.ChatOptions) (s
if o.Stream {
channel := make(chan string)
go func() {
if streamErr := o.vendor.SendStream(session.Messages, opts, channel); streamErr != nil {
if streamErr := o.vendor.SendStream(session.GetVendorMessages(), opts, channel); streamErr != nil {
channel <- streamErr.Error()
}
}()