Commit d74b49a
committed
Fix test_message_text_property to work with both LangChain 0.3.x and 1.x
In LangChain 0.3.x, .text is a method (callable), while in 1.x it's a
property. Update the test to handle both cases by checking if .text is
callable and calling it if necessary.
Verified:
- Test passes with LangChain 0.3.80
- Test passes with LangChain 1.1.01 parent 7a15cb2 commit d74b49a
File tree
1 file changed
+7
-4
lines changed- libs/oci/tests/integration_tests/chat_models
1 file changed
+7
-4
lines changedLines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
341 | 340 | | |
342 | 341 | | |
343 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
344 | 346 | | |
345 | | - | |
| 347 | + | |
| 348 | + | |
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
| |||
0 commit comments