Skip to content

refactor: re-export OpenAI-family chat classes from models.py#811

Merged
cosminacho merged 1 commit intomainfrom
feat/openai-classes-in-models
Apr 27, 2026
Merged

refactor: re-export OpenAI-family chat classes from models.py#811
cosminacho merged 1 commit intomainfrom
feat/openai-classes-in-models

Conversation

@cosminacho
Copy link
Copy Markdown
Contributor

Summary

Follow-up to #809. chat/models.py now re-exports UiPathAzureChatOpenAI and UiPathChatOpenAI from chat/openai.py alongside its existing UiPathChat — so all three OpenAI-family classes are reachable via uipath_langchain.chat.models.

The implementation (per-class model_name default mutation) stays where it was in chat/openai.py, so:

  • existing imports of from uipath_langchain.chat.openai import UiPathChatOpenAI keep working
  • the mock paths in tests/cli/test_agent_with_guardrails.py (e.g. "uipath_langchain.chat.openai.UiPathChatOpenAI.ainvoke") keep resolving

Bookkeeping

  • pyproject.toml: 0.10.60.10.7
  • uv.lock refreshed

Test plan

  • uv run pytest tests/chat/ — 196 passed
  • uv run mypy src/ — clean across 160 source files
  • just lint — clean

Generated with Claude Code

models.py now re-exports UiPathAzureChatOpenAI and UiPathChatOpenAI from
chat/openai.py alongside its existing UiPathChat, so all three
OpenAI-family classes are reachable via uipath_langchain.chat.models.
The implementation (and per-class default mutation) stays in openai.py
so existing imports and the test mock paths under tests/cli/ remain
working unchanged.

Version bump 0.10.6 -> 0.10.7.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cosminacho cosminacho merged commit 03d593c into main Apr 27, 2026
45 checks passed
@cosminacho cosminacho deleted the feat/openai-classes-in-models branch April 27, 2026 08:48
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.

2 participants