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
Feat: default OpenAI chat to Responses API where possible
Prefer the OpenAI Responses API (`ApiFlavor.RESPONSES`) when discovery
signals both flavors are available, and when the langchain factory has
no other flavor to route with:
- `UiPathBaseSettings.get_model_info()`: when multiple OpenAI entries
remain after existing filtering, prefer the `responses` /
`OpenAiResponses` flavor over `chat-completions`.
- `get_chat_model()` (langchain): inside the OpenAI match arm, default
`api_flavor=RESPONSES` when discovery doesn't specify one and the
caller didn't either.
The LiteLLM client keeps `chat-completions` as its fallback for the
single-entry / `apiFlavor=null` case. It serves both completion and
embedding paths from the same instance, and the `responses/` model
prefix in `_resolve_litellm_model` would break embedding calls if
Responses were the default on a UiPath-owned OpenAI embedding model
that reports `apiFlavor=null` at discovery. The discovery-level
tie-break in `get_model_info` still benefits that client whenever
the backend advertises both flavors explicitly.
Bumps both packages to 1.9.3.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
All notable changes to `uipath_llm_client` (core package) will be documented in this file.
4
4
5
+
## [1.9.3] - 2026-04-20
6
+
7
+
### Changed
8
+
-`UiPathBaseSettings.get_model_info()` now prefers the Responses API when discovery returns multiple OpenAI entries for the same model (both `chat-completions` and `responses` flavors present). The LiteLLM client keeps its `chat-completions` fallback for the single-entry / `apiFlavor=null` case because the same client serves embedding requests.
Copy file name to clipboardExpand all lines: packages/uipath_langchain_client/CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,12 @@
2
2
3
3
All notable changes to `uipath_langchain_client` will be documented in this file.
4
4
5
+
## [1.9.3] - 2026-04-20
6
+
7
+
### Changed
8
+
-`get_chat_model()` now defaults to the OpenAI Responses API (`ApiFlavor.RESPONSES`) when discovery does not specify a flavor for an OpenAI chat model. Explicit `api_flavor=` on the call and BYOM-discovered flavors still take precedence.
9
+
- Minimum `uipath-llm-client` bumped to 1.9.3 for the `get_model_info()` Responses-preference tie-break.
0 commit comments