(chunk: ChunkStream)
| 32 | * @returns The text content of the first choice's delta, or an empty string if it doesn't exist. |
| 33 | */ |
| 34 | export const getTextPart = (chunk: ChunkStream) => { |
| 35 | return chunk.choices[0]?.delta?.content || ''; |
| 36 | }; |
| 37 | |
| 38 | /** |
| 39 | * Handles the response stream from a given `Response` object. |
nothing calls this directly
no outgoing calls
no test coverage detected