- Check HTTP status before parsing response body, matching the
pattern used by generate_content and predict_image
- Unwrap TextEmbeddingResponse enum, returning TextEmbeddingResponseOk
- Extract CountTokensResponseResult struct and add into_result(),
returning the unwrapped result instead of the raw enum
- All endpoints now consistently return the success type directly
and surface API errors as GeminiError or GenericApiError