Ethan

Results 6 comments of Ethan

Just created a PR for this, It maps each event onto the correct object classes. So you can loop through the stream and perform whichever actions you want at each...

I'm fairly certain this is fully feature complete with everything new within the API. Let me know if anything's spotted that might be missing, or any updates that need to...

@knash94 Thanks for reviewing it and resolving the type issue. I'm not doing any work with images, so wouldn't have spotted that one. I've added the `createAndRunStreamed` function, and updated...

@punyflash Thanks for pointing out these issues > * Lack of types annotations for stream events. Needed to set them in place, so my ide could give me at least...

@subet Unfortunately I have no idea for a timeline on this. In the meantime you can use the new functionality with this https://github.com/openai-php/client/pull/367#issuecomment-2046120856 Im quite confident that all the functionality...

@Guervyl The output tokens refers to text generations from the Ai models. So retrieving previous messages, and old text generations does not cost anything.