Skip to content

feat: add qwen_embedding field and fix request object serialization - #24

Merged
Kizy625 merged 1 commit into
mainfrom
fern-bot/2026-04-23T13-58Z
Apr 23, 2026
Merged

Kizy625 merged 1 commit into
mainfrom
fern-bot/2026-04-23T13-58Z

Conversation

@fern-api

@fern-api fern-api Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

2.0.0 → 2.1.0

[2.1.0] - 2025-07-10

Added

  • NlpDataEntity.getQwenEmbedding() — new Optional<List<Float>> field exposing a 1024-dimensional Qwen3-Embedding-0.6B vector for articles indexed from January 1, 2026 onward (requires the v3_nlp_embeddings plan).

Changed

  • ObjectMappers — now registers a custom DoubleSerializer that writes integer-valued doubles (e.g. 24000.0) as plain integers (24000) in all serialized output.

Fixed

  • GetAggregationCountRequest, GetAuthorsRequest, and GetSourcesRequest — getter methods are now annotated with @JsonIgnore instead of @JsonProperty, preventing query-parameter-only fields from being incorrectly serialized into the JSON request body.
  • RetryInterceptor — ExponentialBackoff is now instantiated fresh per retry cycle, eliminating shared mutable state across concurrent requests.

See full changelog

Add the `qwenEmbedding` field to `NlpDataEntity` for articles indexed
from January 1, 2026 onward using the Qwen3-Embedding-0.6B model.
Fix request objects (`GetAggregationCountRequest`, `GetAuthorsRequest`)
to use `@JsonIgnore` instead of `@JsonProperty` on getter methods,
preventing fields from being serialized into the JSON request body
(these are query-parameter-only request objects). Also reorder static
constants in `NewsDomainType` and `SortBy` enums, and refactor
`RetryInterceptor` to create a fresh `ExponentialBackoff` per retry
cycle.

Key changes:
- Add `qwenEmbedding` (`Optional<List<Float>>`) field and builder methods to `NlpDataEntity`
- Replace `@JsonProperty` with `@JsonIgnore` on all getter methods in `GetAggregationCountRequest` and `GetAuthorsRequest` to prevent incorrect JSON serialization
- Reorder static constants and switch cases in `NewsDomainType` and `SortBy` enums (no semantic change)
- Refactor `RetryInterceptor` to instantiate `ExponentialBackoff` per retry invocation rather than sharing a stateful instance

🌿 Generated with Fern
@oscatcher
oscatcher requested a review from Kizy625 April 23, 2026 14:11
@Kizy625
Kizy625 merged commit 142d081 into main Apr 23, 2026
3 checks passed
@oscatcher
oscatcher deleted the fern-bot/2026-04-23T13-58Z branch May 1, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant