- Breaking:
embed()andbatchEmbed()now return the fullEmbeddingResponseinstead of bare vectors. Get the vectors viaoutput()(one per input, sooutput()[0]forembed()), and token usage viausage()- previously usage on embedding calls was unrecoverable. - Breaking:
rerank()now returns the fullRerankResponseinstead of aRerankResult[]array. Get the sorted results viaoutput()(or the$resultsproperty), and token usage viausage(). - Breaking:
EmbeddingResponse::output()now returns validated float vectors and throwsSthAI\Exception\ResponseExceptionfor non-float encoding formats or when the response carries no embeddings. The raw entries stay available on the$dataproperty.
What's Changed
Full Changelog: v1.1.1...v1.2.0