Problem/Motivation

Add the methods that makes logging possilbe of responses on streaming events from here: https://www.drupal.org/project/ai/issues/3489690

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 openai_provider_iterator.patch562 bytesseogow
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

marcus_johansson created an issue. See original summary.

  • marcus_johansson committed 57f616b2 on 3489846-add-event-triggering
    Issue #3489846: Add event triggering for streaming
    
seogow’s picture

StatusFileSize
new562 bytes

I have uploaded a patch which uses a suggested fix in a AI module.

Each AI provider supporting stream should be able to iterate any way it needs to, so I suggest this change: https://git.drupalcode.org/issue/ai-3493277/-/blob/3493277-extend-loggin...

This way the getIterator() works as a wrapper template, ensuring compatibility, which at the end of stream triggers the event. If a provider requires different implementation of the iterator, it can override overrideGetIterator().

marcus_johansson’s picture

Assigned: marcus_johansson » Unassigned
anjaliprasannan’s picture

Version: 1.0.x-dev » 1.2.x-dev
anjaliprasannan’s picture

Version: 1.2.x-dev » 1.0.x-dev

anjaliprasannan’s picture

Status: Active » Needs review