Open ShelbyJenkins opened 4 months ago
@ShelbyJenkins
ResponseBody.content
is multiple content blocks (but usually may be single length of text content block) on non-streaming API.
This is an array of content blocks, each of which has a type that determines its shape. Currently, the only type in responses is "text".
The text content in response can be excluded by Contentl.flatten_into_text()
method with Result
like this example
https://github.com/mochi-neko/clust/blob/main/examples/create_a_message.rs
It might be an API issue, but I thought I should raise the issue.
I'm able to parse the response any how.