Issues with stream: true
and Invalid Parameters in Bee Agent 0.1 (WatsonX)
#313
Labels
stream: true
and Invalid Parameters in Bee Agent 0.1 (WatsonX)
#313
📝 Describe the Bug
After upgrading to Bee Agent Framework 0.1, I encountered two issues when working with WatsonX (
ibm/granite-3-8b-instruct
):topK
,seed
,stopSequences
,decoding_method
) cause validation errors, despite being included in the official guide.stream: true
does not return streaming responses as expected; instead, the full response appears at once, andobserve()
does not emitupdate
events.⚙️ To Reproduce
Steps to reproduce the issue:
ChatModel
usingwatsonx:ibm/granite-3-8b-instruct
.observe()
does not emit anyupdate
events, and the response only appears once at the end.🎯 Expected Behavior
topK
,seed
,stopSequences
, anddecoding_method
should be valid parameters as per the documentation.stream: true
should return real-time token updates, instead of waiting until the full response is generated.📷 Screenshots / Code Snippets
🛠 Debug Output:
response[Symbol.asyncIterator] === false
→ indicates thatfor await ... of
cannot be used.response.messages
contains structured assistant responses, but they all arrive at once instead of streaming progressively.🖥 Set-up:
0.1
watsonx
20.11.1
ibm/granite-3-8b-instruct
📌 Additional Context
stream: true
supposed to return an async iterable response?topK
,seed
,stopSequences
, anddecoding_method
officially supported for WatsonX in Bee Agent 0.1?observe()
does not support token-by-token streaming, what is the recommended method for real-time output?Would appreciate any guidance on these issues. Thanks in advance! 🙌🚀
The text was updated successfully, but these errors were encountered: