Commit 2ad1473
Refactor: api_flavor as a field on OpenAI/Azure chat models
Follow the same pattern as UiPathChatAnthropic.vendor_type: add an
api_flavor field to UiPathChatOpenAI, UiPathAzureChatOpenAI, and
UiPathAzureAIChatCompletionsModel. The model_validator sets
api_config.api_flavor from the field, and the request hook reads it.
The factory now passes api_flavor= directly instead of constructing a
full UiPathAPIConfig.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2c47265 commit 2ad1473
3 files changed
Lines changed: 13 additions & 14 deletions
File tree
- packages/uipath_langchain_client/src/uipath_langchain_client
- clients
- azure
- openai
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
| |||
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| 92 | + | |
| 93 | + | |
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
| |||
Lines changed: 2 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | | - | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
| |||
176 | 174 | | |
177 | 175 | | |
178 | 176 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 177 | | |
192 | 178 | | |
193 | 179 | | |
| |||
196 | 182 | | |
197 | 183 | | |
198 | 184 | | |
| 185 | + | |
199 | 186 | | |
200 | 187 | | |
201 | 188 | | |
| |||
207 | 194 | | |
208 | 195 | | |
209 | 196 | | |
| 197 | + | |
210 | 198 | | |
211 | 199 | | |
212 | 200 | | |
| |||
0 commit comments