response.text could check the finish_reason and safety filters and give a more directly helpful error message. #282
Labels
component:python sdk
Issue/PR related to Python SDK
status:triaged
Issue/PR triaged to the corresponding sub-team
type:feature request
New feature request/enhancement
Description of the feature request:
response.text
could check the safety filters and give a more directly helpful error message.If a message is blocked because of safety, currently you get an index error or something, but if the finish_reason is bad we could give some details on why text is not filled in.
The text was updated successfully, but these errors were encountered: