watson-developer-cloud / assistant-toolkit

Toolkit for experimentation with watsonx Assistant
Apache License 2.0
115 stars 130 forks source link

feat(watsonx.ai): Streaming #278

Closed jfmartinez closed 2 months ago

anirudhaBapat commented 2 months ago

Hey, you need to set these before calling Invoke watsonx Generation Stream API step. We do the same for Invoke watsonx Generation API see step 8 of Test model, otherwise you will get the error -

{"status":400,"body":{"errors":[{"code":"json_validation_error","message":"Json document validation error: 'input' cannot be missing or empty in the request body","more_info":"https://cloud.ibm.com/apidocs/watsonx-ai"}],"trace":"11e5e3b5a63f09ef3c8e744f651be317","status_code":400}}

Screenshot 2024-07-11 at 9 36 32 AM

jfmartinez commented 2 months ago

Thanks @anibapat, Step 7 now steps the variables appropiately:

Screenshot 2024-07-11 at 1 21 16 PM
anirudhaBapat commented 2 months ago

I think you need someone who has a write access, I have some odd GH public account issue which prevents me having that access. @jwm4 Can you review & approve?