You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(model,credential): resolve inconsistent state after apply for numeric params, vanished keys, mode, and credential read-back
- Normalize scientific notation strings in additional_litellm_params to
canonical decimal form on both plan and read-back (e.g. '1.75e-07' →
'0.000000175') to prevent inconsistent result errors
- Preserve known params (input_cost_per_token, output_cost_per_token) in
additional_litellm_params when user explicitly configured them, fixing
'element has vanished' errors
- Guard mode read-back with null check so API-inferred values (e.g.
'video_generation') don't overwrite unconfigured null state; mark mode
as Optional+Computed for import support
- Add retry with exponential backoff for credential read-back after
creation to handle eventual-consistency 404 errors
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [1.0.6] - 2026-02-16
9
+
10
+
### Fixed
11
+
-**`litellm_model`**: Fixed "Provider produced inconsistent result after apply" for `additional_litellm_params` values containing small decimals — the API returns numeric strings in scientific notation (e.g. `"1.75e-07"`) which didn't match the user's decimal notation (e.g. `"0.000000175"`). Both plan and read-back values are now normalized to canonical decimal form.
12
+
-**`litellm_model`**: Fixed "element has vanished" error when `input_cost_per_token` or `output_cost_per_token` are set via `additional_litellm_params` — these keys were incorrectly filtered out on read-back because they appeared in the known-params exclusion list. The filter now respects user-configured keys.
13
+
-**`litellm_model`**: Fixed "was null, but now `video_generation`" error for the `mode` attribute — when the user didn't set `mode`, the API-inferred value (e.g. `"video_generation"` for sora-2) was written into state, conflicting with the null plan. Mode is now only populated from the API when the user configured it or it was previously set.
14
+
-**`litellm_credential`**: Fixed "Credential not found" warning on create — the read-back immediately after creation could fail with 404 due to eventual consistency. Added retry logic with exponential backoff (matching the existing model resource pattern).
15
+
16
+
### Changed
17
+
-**`litellm_model`**: The `mode` attribute is now `Optional + Computed` (was `Optional` only), allowing the API to populate it during import.
0 commit comments