Genkitx-openai generate
response candidate not properly generated when streamingCallback
is used
#137
Labels
bug
Something isn't working
Affected plugin(s)
Describe the bug
Using the sample flow generated by Genkit
The output of the history will be
The user's original prompt is recorded but the model's response is empty
The issue is due to the following line
https://github.com/TheFireCo/genkit-plugins/blob/main/plugins/openai/src/gpt.ts#L379
When calling
The response looks like below
Which contains an empty array of
tool_calls
.The current code only check for truthiness of
toolRequestParts
, but we should also check its length instead.The text was updated successfully, but these errors were encountered: