Needs review
Project:
OpenAI Provider
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2024 at 11:00 UTC
Updated:
22 Aug 2025 at 16:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
seogow commentedI 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 overrideoverrideGetIterator().Comment #4
marcus_johansson commentedComment #5
anjaliprasannan commentedComment #6
anjaliprasannan commentedComment #8
anjaliprasannan commented